diff options
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 30e1a8e8a16a..13a0838aa1e6 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -297,7 +297,8 @@ static void lbs_scan_create_channel_list(lbs_private *priv, | |||
297 | 297 | ||
298 | for (rgnidx = 0; rgnidx < ARRAY_SIZE(adapter->region_channel); rgnidx++) { | 298 | for (rgnidx = 0; rgnidx < ARRAY_SIZE(adapter->region_channel); rgnidx++) { |
299 | if (priv->adapter->enable11d && | 299 | if (priv->adapter->enable11d && |
300 | adapter->connect_status != LBS_CONNECTED) { | 300 | (adapter->connect_status != LBS_CONNECTED) && |
301 | (adapter->mesh_connect_status != LBS_CONNECTED)) { | ||
301 | /* Scan all the supported chan for the first scan */ | 302 | /* Scan all the supported chan for the first scan */ |
302 | if (!adapter->universal_channel[rgnidx].valid) | 303 | if (!adapter->universal_channel[rgnidx].valid) |
303 | continue; | 304 | continue; |
@@ -897,13 +898,14 @@ int lbs_scan_networks(lbs_private *priv, | |||
897 | mutex_unlock(&adapter->lock); | 898 | mutex_unlock(&adapter->lock); |
898 | #endif | 899 | #endif |
899 | 900 | ||
900 | if (priv->adapter->connect_status == LBS_CONNECTED) { | 901 | if (adapter->connect_status == LBS_CONNECTED) { |
901 | netif_carrier_on(priv->dev); | 902 | netif_carrier_on(priv->dev); |
902 | netif_wake_queue(priv->dev); | 903 | netif_wake_queue(priv->dev); |
903 | if (priv->mesh_dev) { | 904 | } |
904 | netif_carrier_on(priv->mesh_dev); | 905 | |
905 | netif_wake_queue(priv->mesh_dev); | 906 | if (priv->mesh_dev && (adapter->mesh_connect_status == LBS_CONNECTED)) { |
906 | } | 907 | netif_carrier_on(priv->mesh_dev); |
908 | netif_wake_queue(priv->mesh_dev); | ||
907 | } | 909 | } |
908 | 910 | ||
909 | out: | 911 | out: |