]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.1.13/iwlwifi-mvm-clear-csa-countdown-when-ap-is-stopped.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.1.13 / iwlwifi-mvm-clear-csa-countdown-when-ap-is-stopped.patch
CommitLineData
af068d41
GKH
1From e9cb0327b26dd7ba43a3b7a05b4b62219decf42d Mon Sep 17 00:00:00 2001
2From: Avraham Stern <avraham.stern@intel.com>
3Date: Mon, 31 Aug 2015 11:08:27 +0300
4Subject: iwlwifi: mvm: clear csa countdown when AP is stopped
5
6From: Avraham Stern <avraham.stern@intel.com>
7
8commit e9cb0327b26dd7ba43a3b7a05b4b62219decf42d upstream.
9
10The csa_countdown flag was not cleared when the AP is stopped.
11As a result, if the AP was stopped after csa_countdown had started,
12all the folowing channel switch commands would fail.
13Fix that by clearing the csa_countdown flag when the AP is stopped.
14
15Signed-off-by: Avraham Stern <avraham.stern@intel.com>
16Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
17Signed-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) {