summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjohannes@sipsolutions.net <johannes@sipsolutions.net>2006-04-11 10:58:07 +0200
committerJohn W. Linville <linville@tuxdriver.com>2006-04-19 17:25:39 -0400
commitfc242746ea8d87b3032c7a1c9b8eb71c149488a8 (patch)
tree1650fc1a84e3b454d1bd6cdf6ceffe17d08ea370 /net
parentba2f8c18756b4a99c8cd3ab6526b2ed7a8f18ead (diff)
downloadlinux-3.10-fc242746ea8d87b3032c7a1c9b8eb71c149488a8.tar.gz
linux-3.10-fc242746ea8d87b3032c7a1c9b8eb71c149488a8.tar.bz2
linux-3.10-fc242746ea8d87b3032c7a1c9b8eb71c149488a8.zip
[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>
Diffstat (limited to 'net')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_scan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_scan.c b/net/ieee80211/softmac/ieee80211softmac_scan.c
index bb9ab8b45d0..2b9e7edfa3c 100644
--- a/net/ieee80211/softmac/ieee80211softmac_scan.c
+++ b/net/ieee80211/softmac/ieee80211softmac_scan.c
@@ -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);