]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mac80211: stop queues before carrier off
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 8 Sep 2008 15:33:40 +0000 (17:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 11 Sep 2008 19:53:36 +0000 (15:53 -0400)
commit24e64622c3f3143c801850897ab0cea8f3c69445
tree2a36dfee1c6a7b96c9cf45510869fb37f901f4fb
parentf5e5bf258b399f74b606e532ae0a2599522fd7bf
mac80211: stop queues before carrier off

During testing of the disassociation fixes, Tomas noticed that it
was possible to run into a situation where you'd suddenly get a
few "wlan0: dropped frame to <AP> (unauthorized port)" messages
and I found this to be due to the AP's sta_info having been
removed but netif_carrier_off not having removed/stopped traffic
yet. To avoid that, stop the queue for the interface (and avoid
bringing them up when another vif scans when they weren't up.)

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c