Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 57974a55d995 ("wifi: iwlwifi: mvm: refactor iwl_mvm_mac_sta_state_common()")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20231011130030.933011e710a9.I77c069c781e8b2b698b86cc3f43fc3c7e2dde114@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

+2 -1
+2 -1
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
··· 2060 2060 *status = IWL_MVM_QUEUE_FREE; 2061 2061 } 2062 2062 2063 - if (vif->type == NL80211_IFTYPE_STATION) { 2063 + if (vif->type == NL80211_IFTYPE_STATION && 2064 + mvm_link->ap_sta_id == sta_id) { 2064 2065 /* if associated - we can't remove the AP STA now */ 2065 2066 if (vif->cfg.assoc) 2066 2067 return true;