net: wireless: bcmdhd: Prevent recursive call of cfg80211_sched_scan_stopped()

Change-Id: I821313a69b2d2bb978917fc184bf9e095dd48c47
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt 2013-04-23 14:54:02 -07:00
parent 6460ff855d
commit 357566d0a2

View File

@ -8002,9 +8002,7 @@ static s32 wl_notify_escan_complete(struct wl_priv *wl,
#ifdef WL_SCHED_SCAN
if (wl->sched_scan_req && !wl->scan_request) {
WL_PNO((">>> REPORTING SCHED SCAN RESULTS \n"));
if (aborted)
cfg80211_sched_scan_stopped(wl->sched_scan_req->wiphy);
else
if (!aborted)
cfg80211_sched_scan_results(wl->sched_scan_req->wiphy);
wl->sched_scan_running = FALSE;
wl->sched_scan_req = NULL;