Lines Matching refs:scan

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