]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iwlwifi: mvm: disconnect TDLS peers before channel switch
authorArik Nemtsov <arik@wizery.com>
Sun, 14 Sep 2014 16:13:54 +0000 (19:13 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 24 Nov 2014 06:30:42 +0000 (08:30 +0200)
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>
drivers/net/wireless/iwlwifi/mvm/mac80211.c

index 5dbf547ef02af6953c11cdc0e111011107475e8d..322d01b90c0ec95a33d43874c847ac06f1c7d214 100644 (file)
@@ -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);