aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArik Nemtsov2014-09-14 19:13:54 +0300
committerEmmanuel Grumbach2014-11-24 08:30:42 +0200
commite198f5e76f4d29a7fed4fd35f4d7dfbaea6a5c08 (patch)
tree9d097b30f539665c606602bcccfb38ac2053b999
parent339b30864edbcac656c9ffc9dc3544eca645fc8a (diff)
iwlwifi: mvm: disconnect TDLS peers before channel switch
In case of channel switch, we need to teardown the TDLS peers. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mac80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index 5dbf547ef02a..322d01b90c0e 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -3245,6 +3245,9 @@ static int iwl_mvm_pre_channel_switch(struct ieee80211_hw *hw,
if (ret)
goto out_unlock;
+ /* we won't be on this channel any longer */
+ iwl_mvm_teardown_tdls_peers(mvm);
+
out_unlock:
mutex_unlock(&mvm->mutex);