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 <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20241010140328.c54c42779882.Ied79e0d6244dc5a372e8b6ffa8ee9c6e1379ec1d@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent e31a821 commit 3ed0929

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)