]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix sw scan bracketing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jun 2010 10:32:20 +0000 (12:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Jun 2010 19:11:14 +0000 (15:11 -0400)
commitb2778b9a86d0a57201aa14ef154bc738e0675127
tree7ca928290eb276ea25afbc6b12d8d8f63dfea167
parenta147e00b163cb7ed8c0e2291ef89be1fe52f60e4
mac80211: fix sw scan bracketing

Currently, detection in hwsim and ath9k can
detect that two sw scans are in flight at the
same time, which isn't really true. It is
caused by a race condition, because the scan
complete callback is called too late, after
the lock has been dropped, so that a new scan
can be started before it is called.

It is also called too early semantically, as
it is currently called _after_ the return to
the operating channel -- it should be before
so that drivers know this is the operating
channel again.

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