summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/main.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-11-22 16:06:11 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-11-27 08:49:25 (GMT)
commit598b262a06235ced311a5327e1fbcedd74da53c9 (patch)
treea6eea7c95aa088ffe0ee2745d0fa21af0b2c7d64 /drivers/net/wireless/ti/wlcore/main.c
parent48af2eb046bd452f381f142b19cf9c86ddf575f5 (diff)
downloadlinux-fsl-qoriq-598b262a06235ced311a5327e1fbcedd74da53c9.tar.xz
wlcore: don't call ieee80211_sched_scan_stopped directly
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>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/main.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index 11ee7cc..111b84f 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -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)