|
@@ -254,10 +254,10 @@ void __cfg80211_sched_scan_results(struct work_struct *wk)
|
|
rdev = container_of(wk, struct cfg80211_registered_device,
|
|
rdev = container_of(wk, struct cfg80211_registered_device,
|
|
sched_scan_results_wk);
|
|
sched_scan_results_wk);
|
|
|
|
|
|
- request = rdev->sched_scan_req;
|
|
|
|
-
|
|
|
|
rtnl_lock();
|
|
rtnl_lock();
|
|
|
|
|
|
|
|
+ request = rdev->sched_scan_req;
|
|
|
|
+
|
|
/* we don't have sched_scan_req anymore if the scan is stopping */
|
|
/* we don't have sched_scan_req anymore if the scan is stopping */
|
|
if (request) {
|
|
if (request) {
|
|
if (request->flags & NL80211_SCAN_FLAG_FLUSH) {
|
|
if (request->flags & NL80211_SCAN_FLAG_FLUSH) {
|