diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-11-28 13:42:47 +0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-12-11 14:37:23 +0400 |
commit | 0b70078c38fd1c8d69cf52b93e8c3bdd719a2394 (patch) | |
tree | 2d6f22e7b2b5d68fd081cd62e8d87a6b37e08101 /drivers/net/wireless/ti/wl18xx/scan.c | |
parent | c80daad625b382fcd72ad68a5c0a26933263aa85 (diff) | |
download | linux-0b70078c38fd1c8d69cf52b93e8c3bdd719a2394.tar.xz |
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/wl18xx/scan.c')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/scan.c | 4 |
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 1df88d5336f3..09d944505ac0 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, |