mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-15 22:41:38 +00:00
iwlwifi: mvm: clear csa countdown when AP is stopped
commit e9cb0327b2 upstream.
The csa_countdown flag was not cleared when the AP is stopped.
As a result, if the AP was stopped after csa_countdown had started,
all the folowing channel switch commands would fail.
Fix that by clearing the csa_countdown flag when the AP is stopped.
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0f4e2e7765
commit
a55c440ef8
@@ -2277,6 +2277,7 @@ static void iwl_mvm_stop_ap_ibss(struct ieee80211_hw *hw,
|
|||||||
iwl_mvm_remove_time_event(mvm, mvmvif,
|
iwl_mvm_remove_time_event(mvm, mvmvif,
|
||||||
&mvmvif->time_event_data);
|
&mvmvif->time_event_data);
|
||||||
RCU_INIT_POINTER(mvm->csa_vif, NULL);
|
RCU_INIT_POINTER(mvm->csa_vif, NULL);
|
||||||
|
mvmvif->csa_countdown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rcu_access_pointer(mvm->csa_tx_blocked_vif) == vif) {
|
if (rcu_access_pointer(mvm->csa_tx_blocked_vif) == vif) {
|
||||||
|
|||||||
Reference in New Issue
Block a user