From: Stanislaw Gruszka Date: Wed, 6 Oct 2010 09:22:12 +0000 (+0200) Subject: mac80211: compete scan to cfg80211 if deferred scan fail to start X-Git-Tag: v2.6.37-rc1~147^2~191^2^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aed49ef17c7bc8397420529ac976fe058818e3d;p=thirdparty%2Flinux.git mac80211: compete scan to cfg80211 if deferred scan fail to start We nulify local->scan_req on failure in __ieee80211_start_scan, so __ieee80211_scan_completed will not call cfg80211_scan_done. Fix that. Signed-off-by: Stanislaw Gruszka Acked-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 9aab921f7ca8d..80e017df5f316 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -665,6 +665,8 @@ void ieee80211_scan_work(struct work_struct *work) rc = __ieee80211_start_scan(sdata, req); if (rc) { + /* need to complete scan in cfg80211 */ + local->scan_req = req; aborted = true; goto out_complete; } else