|
|
@@ -640,6 +640,9 @@ s32 brcmf_notify_escan_complete(struct brcmf_cfg80211_info *cfg,
|
|
|
if (err)
|
|
|
brcmf_err("Scan abort failed\n");
|
|
|
}
|
|
|
+
|
|
|
+ brcmf_set_mpc(ifp, 1);
|
|
|
+
|
|
|
/*
|
|
|
* e-scan can be initiated by scheduled scan
|
|
|
* which takes precedence.
|
|
|
@@ -649,12 +652,10 @@ s32 brcmf_notify_escan_complete(struct brcmf_cfg80211_info *cfg,
|
|
|
cfg->sched_escan = false;
|
|
|
if (!aborted)
|
|
|
cfg80211_sched_scan_results(cfg_to_wiphy(cfg));
|
|
|
- brcmf_set_mpc(ifp, 1);
|
|
|
} else if (scan_request) {
|
|
|
brcmf_dbg(SCAN, "ESCAN Completed scan: %s\n",
|
|
|
aborted ? "Aborted" : "Done");
|
|
|
cfg80211_scan_done(scan_request, aborted);
|
|
|
- brcmf_set_mpc(ifp, 1);
|
|
|
}
|
|
|
if (!test_and_clear_bit(BRCMF_SCAN_STATUS_BUSY, &cfg->scan_status))
|
|
|
brcmf_dbg(SCAN, "Scan complete, probably P2P scan\n");
|