|
@@ -2043,8 +2043,11 @@ int ieee80211_reconfig(struct ieee80211_local *local)
|
|
*/
|
|
*/
|
|
if (sched_scan_req->n_scan_plans > 1 ||
|
|
if (sched_scan_req->n_scan_plans > 1 ||
|
|
__ieee80211_request_sched_scan_start(sched_scan_sdata,
|
|
__ieee80211_request_sched_scan_start(sched_scan_sdata,
|
|
- sched_scan_req))
|
|
|
|
|
|
+ sched_scan_req)) {
|
|
|
|
+ RCU_INIT_POINTER(local->sched_scan_sdata, NULL);
|
|
|
|
+ RCU_INIT_POINTER(local->sched_scan_req, NULL);
|
|
sched_scan_stopped = true;
|
|
sched_scan_stopped = true;
|
|
|
|
+ }
|
|
mutex_unlock(&local->mtx);
|
|
mutex_unlock(&local->mtx);
|
|
|
|
|
|
if (sched_scan_stopped)
|
|
if (sched_scan_stopped)
|