Skip to content

Commit

Permalink
wlcore: don't call ieee80211_sched_scan_stopped directly
Browse files Browse the repository at this point in the history
When we stop sched scan during connection, we shouldn't
call ieee80211_sched_scan_stopped directly, but do it
in the normal flow, as part of the SCHED_SCAN_COMPLETED
event handling.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed Nov 27, 2012
1 parent 48af2eb commit 598b262
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3820,10 +3820,8 @@ static int wlcore_set_bssid(struct wl1271 *wl, struct wl12xx_vif *wlvif,
wlvif->band);

/* we only support sched_scan while not connected */
if (wl->sched_scanning) {
if (wl->sched_scanning)
wl1271_scan_sched_scan_stop(wl, wlvif);
ieee80211_sched_scan_stopped(wl->hw);
}

ret = wl1271_acx_sta_rate_policies(wl, wlvif);
if (ret < 0)
Expand Down

0 comments on commit 598b262

Please sign in to comment.