mac80211: fix scan cancel on ifdown
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 25 Aug 2009 14:33:47 +0000 (16:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:45 +0000 (14:40 -0400)
commit15db0b7fd872b0312033666d3a82e1214a227ec0
tree0c853f69292d085fac68e0cf5098b484fde9d13c
parent6bd5f5208fac04d00325b458355e4a4abda76595
mac80211: fix scan cancel on ifdown

When an interface is taken down while a scan is
pending -- i.e. a scan request was accepted but
not yet acted upon due to other work being in
progress -- we currently do not properly cancel
that scan and end up getting stuck. Fix this by
doing better checks when an interface is taken
down.

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