diff options
author | Eyal Shapira <eyal@wizery.com> | 2011-12-20 07:55:38 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-12-20 15:30:16 -0500 |
commit | ee91d1855137ba9c16d1e7815d562056c3f55e7f (patch) | |
tree | 17e428e7f057f005484613fa2407a78a4e172968 /drivers/net/wireless/wl12xx/event.c | |
parent | fea2a613cf33ee0662e413e2f5697bed36d5029e (diff) |
wl12xx: mark no sched scan only after FW event
stop sched scan isn't an immediate operation
and we need to wait for PERIODIC_SCAN_COMPLETE_EVENT_ID
after sending a stop before changing internal state
and notifying upper layers.
Not doing this caused problems when canceling an existing sched
scan and immediately requesting to start a new one
with a different configuration as the FW was still
in the middle of the previous sched scan.
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/event.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c index 00ce794eebae..d3280df68f5d 100644 --- a/drivers/net/wireless/wl12xx/event.c +++ b/drivers/net/wireless/wl12xx/event.c | |||
@@ -267,8 +267,8 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox) | |||
267 | wl1271_debug(DEBUG_EVENT, "PERIODIC_SCAN_COMPLETE_EVENT " | 267 | wl1271_debug(DEBUG_EVENT, "PERIODIC_SCAN_COMPLETE_EVENT " |
268 | "(status 0x%0x)", mbox->scheduled_scan_status); | 268 | "(status 0x%0x)", mbox->scheduled_scan_status); |
269 | if (wl->sched_scanning) { | 269 | if (wl->sched_scanning) { |
270 | wl1271_scan_sched_scan_stop(wl); | ||
271 | ieee80211_sched_scan_stopped(wl->hw); | 270 | ieee80211_sched_scan_stopped(wl->hw); |
271 | wl->sched_scanning = false; | ||
272 | } | 272 | } |
273 | } | 273 | } |
274 | 274 | ||