]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb79bfaf033c29d76d5b44f50944675eb8b59f51
tree822479b16ce0533bb7148bfe596f1f6743f1eb88
parent10c33f9dd113a31e5421902099413167a25eaf7b
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