]>
Commit | Line | Data |
---|---|---|
af068d41 GKH |
1 | From e9cb0327b26dd7ba43a3b7a05b4b62219decf42d Mon Sep 17 00:00:00 2001 |
2 | From: Avraham Stern <avraham.stern@intel.com> | |
3 | Date: Mon, 31 Aug 2015 11:08:27 +0300 | |
4 | Subject: iwlwifi: mvm: clear csa countdown when AP is stopped | |
5 | ||
6 | From: Avraham Stern <avraham.stern@intel.com> | |
7 | ||
8 | commit e9cb0327b26dd7ba43a3b7a05b4b62219decf42d upstream. | |
9 | ||
10 | The csa_countdown flag was not cleared when the AP is stopped. | |
11 | As a result, if the AP was stopped after csa_countdown had started, | |
12 | all the folowing channel switch commands would fail. | |
13 | Fix that by clearing the csa_countdown flag when the AP is stopped. | |
14 | ||
15 | Signed-off-by: Avraham Stern <avraham.stern@intel.com> | |
16 | Signed-off-by: Luca Coelho <luciano.coelho@intel.com> | |
17 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
18 | ||
19 | --- | |
20 | drivers/net/wireless/iwlwifi/mvm/mac80211.c | 1 + | |
21 | 1 file changed, 1 insertion(+) | |
22 | ||
23 | --- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c | |
24 | +++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c | |
25 | @@ -2277,6 +2277,7 @@ static void iwl_mvm_stop_ap_ibss(struct | |
26 | iwl_mvm_remove_time_event(mvm, mvmvif, | |
27 | &mvmvif->time_event_data); | |
28 | RCU_INIT_POINTER(mvm->csa_vif, NULL); | |
29 | + mvmvif->csa_countdown = false; | |
30 | } | |
31 | ||
32 | if (rcu_access_pointer(mvm->csa_tx_blocked_vif) == vif) { |