[PATCH] softmac: dont send out packets while scanning
Seems we forgot to stop the queue while scanning. Better do that so we don't transmit packets all the time during background scanning. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
ba2f8c1875
commit
fc242746ea
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ ieee80211softmac_start_scan(struct ieee80211softmac_device *sm)
|
|||
sm->scanning = 1;
|
||||
spin_unlock_irqrestore(&sm->lock, flags);
|
||||
|
||||
netif_tx_disable(sm->ieee->dev);
|
||||
ret = sm->start_scan(sm->dev);
|
||||
if (ret) {
|
||||
spin_lock_irqsave(&sm->lock, flags);
|
||||
|
@ -239,6 +240,7 @@ void ieee80211softmac_scan_finished(struct ieee80211softmac_device *sm)
|
|||
if (net)
|
||||
sm->set_channel(sm->dev, net->channel);
|
||||
}
|
||||
netif_wake_queue(sm->ieee->dev);
|
||||
ieee80211softmac_call_events(sm, IEEE80211SOFTMAC_EVENT_SCAN_FINISHED, NULL);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ieee80211softmac_scan_finished);
|
||||
|
|
Loading…
Reference in a new issue