diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-11-28 11:42:47 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-12-11 12:37:23 +0200 |
commit | 0b70078c38fd1c8d69cf52b93e8c3bdd719a2394 (patch) | |
tree | 2d6f22e7b2b5d68fd081cd62e8d87a6b37e08101 /drivers/net/wireless/ti/wl12xx | |
parent | c80daad625b382fcd72ad68a5c0a26933263aa85 (diff) | |
download | talos-obmc-linux-0b70078c38fd1c8d69cf52b93e8c3bdd719a2394.tar.gz talos-obmc-linux-0b70078c38fd1c8d69cf52b93e8c3bdd719a2394.zip |
wlcore: support scan reports during periodic scan
FW API changed and now PERIODIC_SCAN_REPORT_EVENT is sent
in case results were found at the end of each sched scan
cycle. Previous FW was missing that and broke sched scan.
This API change is available from 18xx FW 8.5.0.0.27
[Arik - move changes to 18xx specific files, align FW structures to
latest for scan command]
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl12xx')
-rw-r--r-- | drivers/net/wireless/ti/wl12xx/event.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/event.c b/drivers/net/wireless/ti/wl12xx/event.c index 6437dac12e70..6ac0ed751da8 100644 --- a/drivers/net/wireless/ti/wl12xx/event.c +++ b/drivers/net/wireless/ti/wl12xx/event.c @@ -64,9 +64,13 @@ int wl12xx_process_mailbox_events(struct wl1271 *wl) wl12xx_scan_completed(wl, wl->scan_wlvif); } - if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) - wlcore_event_sched_scan_report(wl, - mbox->scheduled_scan_status); + if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) { + wl1271_debug(DEBUG_EVENT, + "PERIODIC_SCAN_REPORT_EVENT (status 0x%0x)", + mbox->scheduled_scan_status); + + wlcore_scan_sched_scan_results(wl); + } if (vector & PERIODIC_SCAN_COMPLETE_EVENT_ID) wlcore_event_sched_scan_completed(wl, |