Changes in mac/cfg80211 to notify userspace of NL80211_CMD_SCHED_SCAN_STOPPED only when the driver actually reported back that it was stopped. Also blocks other attempts until we're really done. This fixes a scenario where stop sched scan is issued and immediately afterwards a new sched scan is requested (e.g. with other parameters). Current state caused a race where the driver started stopping the sched scan but didn't finish and got another sched scan request which it couldn't handle. Eyal Shapira (2): mac80211: mark stopped sched scan only after driver does nl80211: report stopped sched scan only after driver does net/mac80211/scan.c | 10 +++------- net/wireless/scan.c | 17 ++++++++--------- 2 files changed, 11 insertions(+), 16 deletions(-) -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html