original_kernel/net/wireless
Johannes Berg f9d15d162b cfg80211: send scan results from work queue
Due to the previous commit, when a scan finishes, it is in theory
possible to hit the following sequence:
 1. interface starts being removed
 2. scan is cancelled by driver and cfg80211 is notified
 3. scan done work is scheduled
 4. interface is removed completely, rdev->scan_req is freed,
    event sent to userspace but scan done work remains pending
 5. new scan is requested on another virtual interface
 6. scan done work runs, freeing the still-running scan

To fix this situation, hang on to the scan done message and block
new scans while that is the case, and only send the message from
the work function, regardless of whether the scan_req is already
freed from interface removal. This makes step 5 above impossible
and changes step 6 to be
 5. scan done work runs, sending the scan done message

As this can't work for wext, so we send the message immediately,
but this shouldn't be an issue since we still return -EBUSY.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-02-06 09:55:19 +01:00
..
.gitignore
Kconfig
Makefile
ap.c
chan.c
core.c cfg80211: send scan results from work queue 2014-02-06 09:55:19 +01:00
core.h cfg80211: send scan results from work queue 2014-02-06 09:55:19 +01:00
db.txt
debugfs.c
debugfs.h
ethtool.c
ethtool.h
genregdb.awk
ibss.c
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
mesh.c
mlme.c
nl80211.c cfg80211: send scan results from work queue 2014-02-06 09:55:19 +01:00
nl80211.h cfg80211: send scan results from work queue 2014-02-06 09:55:19 +01:00
radiotap.c
rdev-ops.h
reg.c cfg80211: make regulatory_hint() remove REGULATORY_CUSTOM_REG 2014-01-13 14:46:58 -05:00
reg.h
regdb.h
scan.c cfg80211: send scan results from work queue 2014-02-06 09:55:19 +01:00
sme.c cfg80211: send scan results from work queue 2014-02-06 09:55:19 +01:00
sysfs.c
sysfs.h
trace.c
trace.h
util.c cfg80211: Add a function to get the number of supported channels 2014-01-09 14:24:24 +01:00
wext-compat.c cfg80211: add sanity check for retry limit in wext-compat 2014-01-09 17:05:28 +01:00
wext-compat.h
wext-core.c
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c