]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
iwlwifi: mvm: wait for stop sched-scan completion
authorArik Nemtsov <arik@wizery.com>
Mon, 10 Feb 2014 13:34:29 +0000 (15:34 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 9 Mar 2014 17:16:48 +0000 (19:16 +0200)
commit33ea27f66afa9ca3e130bd00c595dca509152fd7
tree6fd5a2d075e9aaef96638d4d8b04c2508100f5d8
parent7bb426ea36f143459895de0cf11f0f0a7cfa396a
iwlwifi: mvm: wait for stop sched-scan completion

cfg80211 assumes a scheduled scan is stopped synchronously. Wait for the
FW before returning to caller.

Don't do anything in the async handler in the stop-from-above flow.
There's no need to call the mac80211 sched-scan completion as the
cleanup will be automatic. Make sure the async handler is called before
the next incoming scan changes the scan_status by flushing the async
handlers after all invocations.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/scan.c