]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: mld: remove AP keys only for AP STA
authorJohannes Berg <johannes.berg@intel.com>
Sun, 9 Mar 2025 05:36:49 +0000 (07:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Mar 2025 15:29:25 +0000 (16:29 +0100)
On station interfaces we don't only have the AP STA, but also
TDLS stations. Don't try to remove AP keys for them.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Tested-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250309073442.f06a4d6eed2b.Icd20af668a22bfae5328eb0ea00ce10a72ce3539@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/sta.c

index f266a81dd29b99e67153600bb3e50ee0dd5ecf3e..994d4561518bdb589b4269177021c88df90aa0d4 100644 (file)
@@ -793,7 +793,7 @@ void iwl_mld_remove_sta(struct iwl_mld *mld, struct ieee80211_sta *sta)
                 * removed, but FW expects all the keys to be removed before
                 * the STA is, so remove them all here.
                 */
-               if (vif->type == NL80211_IFTYPE_STATION)
+               if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls)
                        iwl_mld_remove_ap_keys(mld, vif, sta, link_id);
 
                /* Remove the link_sta */