]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10e420b3869056c7c5008f8f0b486dc60400d745
treeac0d2fc2fc4b59af202ff92e21a34fbde24c9fa4
parenta0496bcec3498c226695066002bc81c7803de09d
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