]> 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)
commitadd672ad1f03d98b2b56e2e6cd6cfc54fa7934cd
tree145a1b7b419b804bd8b628ab8725406b4b93195e
parentd1636cbcba9bc24443b3b330fe0af6f8645e6bec
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