]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix scan abort sanity checks
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 31 Oct 2009 06:44:08 +0000 (07:44 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Nov 2009 20:39:49 +0000 (15:39 -0500)
commit395a083cc01d7bb5cecb3bd92e82183ab3376001
tree081b2d43707eb2f55414041fd088a6a60f38e2fc
parent6f6b3e9eb82b4e7239bc6f3f0f7b86f07cd3be61
mac80211: fix scan abort sanity checks

Since sometimes mac80211 queues up a scan request
to only act on it later, it must be allowed to
(internally) cancel a not-yet-running scan, e.g.
when the interface is taken down. This condition
was missing since we always checked only the
local->scanning variable which isn't yet set in
that situation.

Reported-by: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/scan.c