diff options
-rw-r--r-- | net/wireless/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index eeb71480f1af..d4397eba5408 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -254,10 +254,10 @@ void __cfg80211_sched_scan_results(struct work_struct *wk) | |||
254 | rdev = container_of(wk, struct cfg80211_registered_device, | 254 | rdev = container_of(wk, struct cfg80211_registered_device, |
255 | sched_scan_results_wk); | 255 | sched_scan_results_wk); |
256 | 256 | ||
257 | request = rdev->sched_scan_req; | ||
258 | |||
259 | rtnl_lock(); | 257 | rtnl_lock(); |
260 | 258 | ||
259 | request = rdev->sched_scan_req; | ||
260 | |||
261 | /* we don't have sched_scan_req anymore if the scan is stopping */ | 261 | /* we don't have sched_scan_req anymore if the scan is stopping */ |
262 | if (request) { | 262 | if (request) { |
263 | if (request->flags & NL80211_SCAN_FLAG_FLUSH) { | 263 | if (request->flags & NL80211_SCAN_FLAG_FLUSH) { |