wifi: iwlwifi: mvm: remove TDLS stations from FW
[sfrench/cifs-2.6.git] / drivers / net / wireless / intel / iwlwifi / mvm / sta.c
index d67103d3eea9286a84556210354922a3a4e32583..9c5ce4c52a0520c9625fd897b5c38c001e2a0846 100644 (file)
@@ -2060,7 +2060,8 @@ bool iwl_mvm_sta_del(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
                *status = IWL_MVM_QUEUE_FREE;
        }
 
-       if (vif->type == NL80211_IFTYPE_STATION) {
+       if (vif->type == NL80211_IFTYPE_STATION &&
+           mvm_link->ap_sta_id == sta_id) {
                /* if associated - we can't remove the AP STA now */
                if (vif->cfg.assoc)
                        return true;