From: Luciano Coelho Date: Fri, 6 Feb 2015 08:19:05 +0000 (+0200) Subject: iwlwifi: mvm: don't try to stop scans that are not running anymore X-Git-Tag: omap-for-v4.2/o2_dc~296^2~30^2~1^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7d3abab81bfb9cda80b7f5aa027fbf9e62a37fd;p=pandora-kernel.git 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 Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed