aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/mvm.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2014-02-10 08:34:29 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-03-09 13:16:48 -0400
commit33ea27f66afa9ca3e130bd00c595dca509152fd7 (patch)
tree6fd5a2d075e9aaef96638d4d8b04c2508100f5d8 /drivers/net/wireless/iwlwifi/mvm/mvm.h
parent7bb426ea36f143459895de0cf11f0f0a7cfa396a (diff)
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mvm.h')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mvm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h
index 3511bf79abcd..4da53c395ad3 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h
@@ -712,6 +712,11 @@ static inline const char *iwl_mvm_get_tx_fail_reason(u32 status) { return ""; }
712int iwl_mvm_flush_tx_path(struct iwl_mvm *mvm, u32 tfd_msk, bool sync); 712int iwl_mvm_flush_tx_path(struct iwl_mvm *mvm, u32 tfd_msk, bool sync);
713void iwl_mvm_async_handlers_purge(struct iwl_mvm *mvm); 713void iwl_mvm_async_handlers_purge(struct iwl_mvm *mvm);
714 714
715static inline void iwl_mvm_wait_for_async_handlers(struct iwl_mvm *mvm)
716{
717 flush_work(&mvm->async_handlers_wk);
718}
719
715/* Statistics */ 720/* Statistics */
716int iwl_mvm_rx_reply_statistics(struct iwl_mvm *mvm, 721int iwl_mvm_rx_reply_statistics(struct iwl_mvm *mvm,
717 struct iwl_rx_cmd_buffer *rxb, 722 struct iwl_rx_cmd_buffer *rxb,
@@ -813,7 +818,7 @@ int iwl_mvm_config_sched_scan_profiles(struct iwl_mvm *mvm,
813 struct cfg80211_sched_scan_request *req); 818 struct cfg80211_sched_scan_request *req);
814int iwl_mvm_sched_scan_start(struct iwl_mvm *mvm, 819int iwl_mvm_sched_scan_start(struct iwl_mvm *mvm,
815 struct cfg80211_sched_scan_request *req); 820 struct cfg80211_sched_scan_request *req);
816void iwl_mvm_sched_scan_stop(struct iwl_mvm *mvm); 821int iwl_mvm_sched_scan_stop(struct iwl_mvm *mvm);
817int iwl_mvm_rx_sched_scan_results(struct iwl_mvm *mvm, 822int iwl_mvm_rx_sched_scan_results(struct iwl_mvm *mvm,
818 struct iwl_rx_cmd_buffer *rxb, 823 struct iwl_rx_cmd_buffer *rxb,
819 struct iwl_device_cmd *cmd); 824 struct iwl_device_cmd *cmd);