Skip to content

Commit 7b404c5

Browse files
committed
wifi: iwlwifi: mvm: remove TDLS stations from FW
When we remove TDLS stations, we need to remove them from FW immediately, even while associated. Some previous refactoring here lost the sta ID condition, add it back. Fixes: 57974a5 ("wifi: iwlwifi: mvm: refactor iwl_mvm_mac_sta_state_common()") Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20231011130030.933011e710a9.I77c069c781e8b2b698b86cc3f43fc3c7e2dde114@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 4387428 commit 7b404c5

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+2
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/sta.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,8 @@ bool iwl_mvm_sta_del(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
20602060
*status = IWL_MVM_QUEUE_FREE;
20612061
}
20622062

2063-
if (vif->type == NL80211_IFTYPE_STATION) {
2063+
if (vif->type == NL80211_IFTYPE_STATION &&
2064+
mvm_link->ap_sta_id == sta_id) {
20642065
/* if associated - we can't remove the AP STA now */
20652066
if (vif->cfg.assoc)
20662067
return true;

0 commit comments

Comments
 (0)