wifi: iwlwifi: mvm: don't leak a link on AP removal
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 10 Oct 2024 11:04:59 +0000 (14:04 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Oct 2024 15:53:24 +0000 (17:53 +0200)
commit3ed092997a004d68a3a5b0eeb94e71b69839d0f7
treec75bd95534a6fabb9cc237a8d830a5e4dffcf77c
parente31a8219fbfcf9dc65ba1e1c10cade12b6754e00
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: a8b5d4809b50 ("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>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c