ieee80211_request_sched_scan_stop() cleared local->sched_scan_sdata. However, sched_scan_sdata should be cleared only after the driver calls ieee80211_sched_scan_stopped() (like with normal hw scan). Clearing sched_scan_sdata too early, caused ieee80211_sched_scan_stopped_work to exit prematurely without properly cleaning all the sched scan resources, and without calling cfg80211_sched_scan_stopped (so userspace wasn't notified about sched scan completion). Signed-off-by: Eliad Peller <eliad@xxxxxxxxxx> --- net/mac80211/scan.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index b6ca2de..1e06f91 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -996,7 +996,6 @@ int ieee80211_request_sched_scan_stop(struct ieee80211_sub_if_data *sdata) } drv_sched_scan_stop(local, sdata); - rcu_assign_pointer(local->sched_scan_sdata, NULL); } out: mutex_unlock(&local->mtx); -- 1.7.6.401.g6a319 -- 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