Skip to content

Commit 3ed0929

Browse files
egrumbachjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: don't leak a link on AP removal
Release the link mapping resource in AP removal. This impacted devices that do not support the MLD API (9260 and down). On those devices, we couldn't start the AP again after the AP has been already started and stopped. Fixes: a8b5d48 ("wifi: iwlwifi: mvm: Configure the link mapping for non-MLD FW") Signed-off-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20241010140328.c54c42779882.Ied79e0d6244dc5a372e8b6ffa8ee9c6e1379ec1d@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent e31a821 commit 3ed0929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,6 @@ static void iwl_mvm_mac_remove_interface(struct ieee80211_hw *hw,
19701970
mvm->p2p_device_vif = NULL;
19711971
}
19721972

1973-
iwl_mvm_unset_link_mapping(mvm, vif, &vif->bss_conf);
19741973
iwl_mvm_mac_ctxt_remove(mvm, vif);
19751974

19761975
RCU_INIT_POINTER(mvm->vif_id_to_mac[mvmvif->id], NULL);
@@ -1979,6 +1978,7 @@ static void iwl_mvm_mac_remove_interface(struct ieee80211_hw *hw,
19791978
mvm->monitor_on = false;
19801979

19811980
out:
1981+
iwl_mvm_unset_link_mapping(mvm, vif, &vif->bss_conf);
19821982
if (vif->type == NL80211_IFTYPE_AP ||
19831983
vif->type == NL80211_IFTYPE_ADHOC) {
19841984
iwl_mvm_dealloc_int_sta(mvm, &mvmvif->deflink.mcast_sta);

0 commit comments

Comments
 (0)