Commit bd5e4744 authored by David Spinadel's avatar David Spinadel Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: do no sched scan while associated

Currently the FW doesn't support sched scan while associated,
Prevent it.

Signed-off-by: default avatarDavid Spinadel <>
Reviewed-by: default avatarJohannes Berg <>
Reviewed-by: default avatarLuciano Coelho <>
Signed-off-by: default avatarEmmanuel Grumbach <>
parent 8e96440e
......@@ -1807,6 +1807,11 @@ static int iwl_mvm_mac_sched_scan_start(struct ieee80211_hw *hw,
if (iwl_mvm_is_associated(mvm)) {
ret = -EBUSY;
goto out;
switch (mvm->scan_status) {
IWL_DEBUG_SCAN(mvm, "Stopping previous scan for sched_scan\n");
......@@ -1003,6 +1003,9 @@ static inline bool iwl_mvm_vif_low_latency(struct iwl_mvm_vif *mvmvif)
return mvmvif->low_latency;
/* Assoc status */
bool iwl_mvm_is_associated(struct iwl_mvm *mvm);
/* Thermal management and CT-kill */
void iwl_mvm_tt_tx_backoff(struct iwl_mvm *mvm, u32 backoff);
void iwl_mvm_tt_handler(struct iwl_mvm *mvm);
......@@ -644,3 +644,22 @@ bool iwl_mvm_low_latency(struct iwl_mvm *mvm)
return result;
static void iwl_mvm_assoc_iter(void *_data, u8 *mac, struct ieee80211_vif *vif)
bool *assoc = _data;
if (vif->bss_conf.assoc)
*assoc = true;
bool iwl_mvm_is_associated(struct iwl_mvm *mvm)
bool assoc = false;
iwl_mvm_assoc_iter, &assoc);
return assoc;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment