path: root/drivers/net/wireless/ti/wl18xx/scan.c
diff options
authorEyal Shapira <eyal@wizery.com>2012-11-28 11:42:47 +0200
committerLuciano Coelho <coelho@ti.com>2012-12-11 12:37:23 +0200
commit0b70078c38fd1c8d69cf52b93e8c3bdd719a2394 (patch)
tree2d6f22e7b2b5d68fd081cd62e8d87a6b37e08101 /drivers/net/wireless/ti/wl18xx/scan.c
parentc80daad625b382fcd72ad68a5c0a26933263aa85 (diff)
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 [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/wl18xx/scan.c')
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/scan.c b/drivers/net/wireless/ti/wl18xx/scan.c
index 1df88d5336f..09d944505ac 100644
--- a/drivers/net/wireless/ti/wl18xx/scan.c
+++ b/drivers/net/wireless/ti/wl18xx/scan.c
@@ -227,6 +227,10 @@ int wl18xx_scan_sched_scan_config(struct wl1271 *wl,
cmd->tag = WL1271_SCAN_DEFAULT_TAG;
+ /* create a PERIODIC_SCAN_REPORT_EVENT whenever we've got a match */
+ cmd->report_threshold = 1;
+ cmd->terminate_on_report = 0;
if (cmd->active[0]) {
u8 band = IEEE80211_BAND_2GHZ;
ret = wl12xx_cmd_build_probe_req(wl, wlvif,