mac80211: Check pending scan request after having processed mgd work
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 25 Aug 2009 14:44:28 +0000 (17:44 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:46 +0000 (14:40 -0400)
commit5bf6fcc2bbfb90d997f88c969f1ceee35d064a24
treed73447bb71015d4b82a2a6b9073bef2c09503488
parent15db0b7fd872b0312033666d3a82e1214a227ec0
mac80211: Check pending scan request after having processed mgd work

When the queued management work items are processed in
ieee80211_sta_work() an item could be removed. This could change the
anybusy from true to false, so we better check whether we can start a
new scan only after having processed the pending work first.

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