iwlwifi: mvm: don't try to stop scans that are not running anymore
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 6 Feb 2015 08:19:05 +0000 (10:19 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 23 Feb 2015 20:22:44 +0000 (22:22 +0200)
commite7d3abab81bfb9cda80b7f5aa027fbf9e62a37fd
tree822479b16ce0533bb7148bfe596f1f6743f1eb88
parent57bff1485096c53f943e26b1c5847f2a9dfe84db
iwlwifi: mvm: don't try to stop scans that are not running anymore

In certain conditions, mac80211 may ask us to stop a scan (scheduled
or normal) that is not running anymore.  This can also happen when we
are doing a different type of scan, for instance, mac80211 can ask us
to stop a scheduled scan when we are running a normal scan, due to
some race conditions.  In this case, we would stop the wrong type of
scan and leave everything everything in a wrong state.

To fix this, simply ignore scan stop requests for scans types that are
not running.

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