diff options
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_scan.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_scan.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_scan.c b/net/ieee80211/softmac/ieee80211softmac_scan.c index a8326076581a..0c85d6c24cdb 100644 --- a/net/ieee80211/softmac/ieee80211softmac_scan.c +++ b/net/ieee80211/softmac/ieee80211softmac_scan.c | |||
@@ -47,7 +47,6 @@ ieee80211softmac_start_scan(struct ieee80211softmac_device *sm) | |||
47 | sm->scanning = 1; | 47 | sm->scanning = 1; |
48 | spin_unlock_irqrestore(&sm->lock, flags); | 48 | spin_unlock_irqrestore(&sm->lock, flags); |
49 | 49 | ||
50 | netif_tx_disable(sm->ieee->dev); | ||
51 | ret = sm->start_scan(sm->dev); | 50 | ret = sm->start_scan(sm->dev); |
52 | if (ret) { | 51 | if (ret) { |
53 | spin_lock_irqsave(&sm->lock, flags); | 52 | spin_lock_irqsave(&sm->lock, flags); |
@@ -137,7 +136,8 @@ void ieee80211softmac_scan(struct work_struct *work) | |||
137 | si->started = 0; | 136 | si->started = 0; |
138 | spin_unlock_irqrestore(&sm->lock, flags); | 137 | spin_unlock_irqrestore(&sm->lock, flags); |
139 | 138 | ||
140 | dprintk(PFX "Scanning finished\n"); | 139 | dprintk(PFX "Scanning finished: scanned %d channels starting with channel %d\n", |
140 | sm->scaninfo->number_channels, sm->scaninfo->channels[0].channel); | ||
141 | ieee80211softmac_scan_finished(sm); | 141 | ieee80211softmac_scan_finished(sm); |
142 | complete_all(&sm->scaninfo->finished); | 142 | complete_all(&sm->scaninfo->finished); |
143 | } | 143 | } |
@@ -186,8 +186,6 @@ int ieee80211softmac_start_scan_implementation(struct net_device *dev) | |||
186 | sm->scaninfo->channels = sm->ieee->geo.bg; | 186 | sm->scaninfo->channels = sm->ieee->geo.bg; |
187 | sm->scaninfo->number_channels = sm->ieee->geo.bg_channels; | 187 | sm->scaninfo->number_channels = sm->ieee->geo.bg_channels; |
188 | } | 188 | } |
189 | dprintk(PFX "Start scanning with channel: %d\n", sm->scaninfo->channels[0].channel); | ||
190 | dprintk(PFX "Scanning %d channels\n", sm->scaninfo->number_channels); | ||
191 | sm->scaninfo->current_channel_idx = 0; | 189 | sm->scaninfo->current_channel_idx = 0; |
192 | sm->scaninfo->started = 1; | 190 | sm->scaninfo->started = 1; |
193 | sm->scaninfo->stop = 0; | 191 | sm->scaninfo->stop = 0; |
@@ -251,7 +249,6 @@ void ieee80211softmac_scan_finished(struct ieee80211softmac_device *sm) | |||
251 | if (net) | 249 | if (net) |
252 | sm->set_channel(sm->dev, net->channel); | 250 | sm->set_channel(sm->dev, net->channel); |
253 | } | 251 | } |
254 | netif_wake_queue(sm->ieee->dev); | ||
255 | ieee80211softmac_call_events(sm, IEEE80211SOFTMAC_EVENT_SCAN_FINISHED, NULL); | 252 | ieee80211softmac_call_events(sm, IEEE80211SOFTMAC_EVENT_SCAN_FINISHED, NULL); |
256 | } | 253 | } |
257 | EXPORT_SYMBOL_GPL(ieee80211softmac_scan_finished); | 254 | EXPORT_SYMBOL_GPL(ieee80211softmac_scan_finished); |