From: Arik Nemtsov Date: Sun, 14 Sep 2014 16:13:54 +0000 (+0300) Subject: iwlwifi: mvm: disconnect TDLS peers before channel switch X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e198f5e76f4d29a7fed4fd35f4d7dfbaea6a5c08;p=linux-beck.git 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 Signed-off-by: Emmanuel Grumbach --- 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);