Emmanuel Grumbach a754055a12 mac80211: correctly close cancelled scans
__ieee80211_scan_completed is called from a worker. This
means that the following flow is possible.

 * driver calls ieee80211_scan_completed
 * mac80211 cancels the scan (that is already complete)
 * __ieee80211_scan_completed runs

When scan_work will finally run, it will see that the scan
hasn't been aborted and might even trigger another scan on
another band. This leads to a situation where cfg80211's
scan is not done and no further scan can be issued.

Fix this by setting a new flag when a HW scan is being
cancelled so that no other scan will be triggered.

Cc: stable@vger.kernel.org
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-10-09 18:40:07 +02:00
..
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:20 -04:00
2013-02-04 18:57:47 +01:00
2013-07-16 09:57:57 +03:00
2013-02-21 12:05:51 -08:00
2013-02-04 18:57:47 +01:00
2013-02-15 15:46:37 +01:00
2011-03-31 11:26:23 -03:00
2012-06-24 11:33:18 +02:00
2013-06-13 11:58:47 +02:00
2012-03-13 14:54:16 -04:00
2013-02-04 18:57:47 +01:00
2012-06-20 17:35:22 +02:00