iwlwifi: mvm: clean up scan state on failure
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Dec 2020 21:16:32 +0000 (23:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Dec 2020 22:14:18 +0000 (00:14 +0200)
commit94631b56422df40d814db99e94bdbf4e2bd3d32a
treeac0d2fc2fc4b59af202ff92e21a34fbde24c9fa4
parent2f7a04c7b03b7fd63b7618e29295fc25732faac1
iwlwifi: mvm: clean up scan state on failure

We keep the scan status per UID in scan_uid_status field when the
iwl_mvm_build_scan_cmd() function is called. If we error out after
this, e.g. due to FW restart being in progress, we're not cleaning
up properly, and can run into warnings later.

Clean up internal variables when starting fails after calling the
iwl_mvm_build_scan_cmd() function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231352.970421a2f753.Id62b2da8a0ccccbb114407db82ca485d07749d39@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c