]> git.itanic.dy.fi Git - linux-stable/commit
wifi: iwlwifi: mvm: fix link ID management
authorJohannes Berg <johannes.berg@intel.com>
Sat, 20 Apr 2024 13:44:36 +0000 (15:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 22 Apr 2024 07:42:25 +0000 (09:42 +0200)
commit91112fc6212a9be6f3be636d885df9c17395e1a4
tree54589a20b4c75591f8a74c101aa3affe92173725
parentc53d8a59351e4347452e263e2e5d7446ec93da83
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: a8b5d4809b50 ("wifi: iwlwifi: mvm: Configure the link mapping for non-MLD FW")
Link: https://msgid.link/20240420154435.dce72db5d5e3.Ic40b454b24f1c7b380a1eedf67455d9cf2f58541@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/link.c