iwlwifi: mvm: check if scan can be started before cancelling other scans
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 20 Mar 2015 07:29:42 +0000 (09:29 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Apr 2015 10:12:48 +0000 (13:12 +0300)
commit4171bb3346dd8e9f3e996fd43271616181208285
treefef18c1737dfb99ddaf8ef867ce2d39ab6d60450
parentbd9564da3dd2ab96c34f9dce4fd546f6c2fb08a1
iwlwifi: mvm: check if scan can be started before cancelling other scans

If a new scan cannot be run for some reason, we shouldn't cancel other
ongoing scans.  Move the checks to before the code that cancels other
scans.

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/mac80211.c