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)
commit54331db99a2a7b621a83865608b2c59913291517
tree145a1b7b419b804bd8b628ab8725406b4b93195e
parentf5af19d10d151c5a2afae3306578f485c244db25
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