Skip to content

Commit 91112fc

Browse files
committed
wifi: iwlwifi: mvm: fix link ID management
On older (pre-MLD API) devices, we started also calling iwl_mvm_set_link_mapping()/iwl_mvm_unset_link_mapping(), but of course not also iwl_mvm_remove_link(). Since the link ID was only released in iwl_mvm_remove_link() this causes us to run out of FW link IDs very quickly. Fix it by releasing the link ID correctly. Fixes: a8b5d48 ("wifi: iwlwifi: mvm: Configure the link mapping for non-MLD FW") Link: https://msgid.link/20240420154435.dce72db5d5e3.Ic40b454b24f1c7b380a1eedf67455d9cf2f58541@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent c53d8a5 commit 91112fc

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ int iwl_mvm_unset_link_mapping(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
279279

280280
RCU_INIT_POINTER(mvm->link_id_to_link_conf[link_info->fw_link_id],
281281
NULL);
282+
iwl_mvm_release_fw_link_id(mvm, link_info->fw_link_id);
282283
return 0;
283284
}
284285

@@ -296,7 +297,6 @@ int iwl_mvm_remove_link(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
296297
return 0;
297298

298299
cmd.link_id = cpu_to_le32(link_info->fw_link_id);
299-
iwl_mvm_release_fw_link_id(mvm, link_info->fw_link_id);
300300
link_info->fw_link_id = IWL_MVM_FW_LINK_ID_INVALID;
301301
cmd.spec_link_id = link_conf->link_id;
302302
cmd.phy_id = cpu_to_le32(FW_CTXT_INVALID);

0 commit comments

Comments
 (0)