diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2010-10-06 05:22:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-06 16:30:42 -0400 |
commit | 3aed49ef17c7bc8397420529ac976fe058818e3d (patch) | |
tree | 28b3a316332cc35bf69461e76415052de8d53d3f /net/mac80211/scan.c | |
parent | 6eb11a9a311a0f7e5b9b66c18f7498a26c9ec206 (diff) |
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 <sgruszka@redhat.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 9aab921f7ca8..80e017df5f31 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -665,6 +665,8 @@ void ieee80211_scan_work(struct work_struct *work) | |||
665 | 665 | ||
666 | rc = __ieee80211_start_scan(sdata, req); | 666 | rc = __ieee80211_start_scan(sdata, req); |
667 | if (rc) { | 667 | if (rc) { |
668 | /* need to complete scan in cfg80211 */ | ||
669 | local->scan_req = req; | ||
668 | aborted = true; | 670 | aborted = true; |
669 | goto out_complete; | 671 | goto out_complete; |
670 | } else | 672 | } else |