Lines Matching full:scan

9 #include "scan.h"
18 struct conf_scan_settings *c = &wl->conf.scan; in wl1271_get_scan_channels()
27 if (!test_bit(i, wl->scan.scanned_ch) && in wl1271_get_scan_channels()
31 * In passive scans, we scan all remaining in wl1271_get_scan_channels()
33 * In active scans, we only scan channels not in wl1271_get_scan_channels()
69 set_bit(i, wl->scan.scanned_ch); in wl1271_get_scan_channels()
91 if (!passive && wl->scan.req->n_ssids == 0) in wl1271_scan_send()
101 if (wl->conf.scan.split_scan_timeout) in wl1271_scan_send()
107 /* scan on the dev role if the regular one is not started */ in wl1271_scan_send()
120 cmd->params.n_ch = wl1271_get_scan_channels(wl, wl->scan.req, in wl1271_scan_send()
129 cmd->params.n_probe_reqs = wl->conf.scan.num_probe_reqs; in wl1271_scan_send()
138 if (wl->scan.ssid_len) { in wl1271_scan_send()
139 cmd->params.ssid_len = wl->scan.ssid_len; in wl1271_scan_send()
140 memcpy(cmd->params.ssid, wl->scan.ssid, wl->scan.ssid_len); in wl1271_scan_send()
147 wl->scan.ssid, wl->scan.ssid_len, in wl1271_scan_send()
148 wl->scan.req->ie, in wl1271_scan_send()
149 wl->scan.req->ie_len, NULL, 0, false); in wl1271_scan_send()
155 trigger->timeout = cpu_to_le32(wl->conf.scan.split_scan_timeout); in wl1271_scan_send()
159 wl1271_error("trigger scan to failed for hw scan"); in wl1271_scan_send()
163 wl1271_dump(DEBUG_SCAN, "SCAN: ", cmd, sizeof(*cmd)); in wl1271_scan_send()
167 wl1271_error("SCAN failed"); in wl1271_scan_send()
182 if (WARN_ON(wl->scan.state == WL1271_SCAN_STATE_IDLE)) in wl12xx_scan_stop()
185 wl1271_debug(DEBUG_CMD, "cmd scan stop"); in wl12xx_scan_stop()
210 switch (wl->scan.state) { in wl1271_scan_stm()
217 if (wl->scan.req->no_cck) { in wl1271_scan_stm()
225 wl->scan.state = WL1271_SCAN_STATE_2GHZ_PASSIVE; in wl1271_scan_stm()
234 if (wl->scan.req->no_cck) { in wl1271_scan_stm()
243 wl->scan.state = WL1271_SCAN_STATE_5GHZ_ACTIVE; in wl1271_scan_stm()
245 wl->scan.state = WL1271_SCAN_STATE_DONE; in wl1271_scan_stm()
256 wl->scan.state = WL1271_SCAN_STATE_5GHZ_PASSIVE; in wl1271_scan_stm()
267 wl->scan.state = WL1271_SCAN_STATE_DONE; in wl1271_scan_stm()
274 wl->scan.failed = false; in wl1271_scan_stm()
281 wl1271_error("invalid scan state"); in wl1271_scan_stm()
318 wl1271_debug(DEBUG_CMD, "cmd sched_scan scan config"); in wl1271_scan_sched_scan_config()
360 wl1271_error("scan channel list is empty"); in wl1271_scan_sched_scan_config()
405 wl1271_error("SCAN configuration failed"); in wl1271_scan_sched_scan_config()
419 wl1271_debug(DEBUG_CMD, "cmd periodic scan start"); in wl1271_scan_sched_scan_start()
438 wl1271_error("failed to send scan start command"); in wl1271_scan_sched_scan_start()
465 wl1271_debug(DEBUG_CMD, "cmd periodic scan stop"); in wl12xx_scan_sched_scan_stop()
470 wl1271_error("failed to alloc memory to send sched scan stop"); in wl12xx_scan_sched_scan_stop()
480 wl1271_error("failed to send sched scan stop command"); in wl12xx_scan_sched_scan_stop()