]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: call ieee80211_scan_completed() even if scan abort fails
authorLuciano Coelho <luciano.coelho@intel.com>
Wed, 4 Feb 2015 22:39:22 +0000 (00:39 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 23 Feb 2015 20:07:29 +0000 (22:07 +0200)
commitb53937936b28a08a8a2896f6f0d805f84a8ab983
tree145a1b7b419b804bd8b628ab8725406b4b93195e
parent4deb2cd74a3fb1ed1f14d1b5e85b88c2ff4b10ea
iwlwifi: mvm: call ieee80211_scan_completed() even if scan abort fails

A scan abort command failure is not that unusual, since we may try to
send it after the scan has actually completed but before we received
the completed notification from the firmware.  The scan abort can also
fail for other reasons, such as a timeout.  In such cases, we should
clear things up so the next scans will work again.  To do so, don't
return immediately in case of failures, but call
ieee80211_scan_completed() and clear the scan_status flags.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c