wifi: iwlwifi: mvm: Refactor tracking of scan UIDs
authorIlan Peer <ilan.peer@intel.com>
Mon, 15 Apr 2024 08:54:35 +0000 (11:54 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 Apr 2024 08:15:34 +0000 (10:15 +0200)
commit20af85e2de60bd4a66f6e84a8c39f27c6eff70fc
tree47630394e56e8532d0b9cfad4ab1625efec7d210
parentc6d075be966ddc1f08f843f78a82d092e5e4362e
wifi: iwlwifi: mvm: Refactor tracking of scan UIDs

Instead of setting the UID to type mapping while building the
scan command, set the UID to type mapping only after the scan
request command was sent successfully.

This resolves a bug where in case a scan request command fails
and a recovery flow is initiated, the recovery flow would indicate
to mac80211 that scan is completed though it was not really started.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Ayala Beker <ayala.beker@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240415114847.7011e93363a2.Idb9b401414864dfc5540d8798a6cb2b192a2acc2@changeid
[also remove from iwl_mvm_scan_umac_v14_and_above()]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c