Lines Matching full:scan

24 #include "scan.h"
168 "end of scan list - go back to beginning");
207 "Failed to assign random MAC address for a scan");
218 "Request driver to clear scan cache due to local BSS flush");
223 * Store the obtained vendor scan cookie (if any) in wpa_s context.
224 * The current design is to allow only one scan request on each
225 * interface, hence having this scan cookie stored in wpa_s context is
228 * Revisit this logic if concurrent scan operations per interface
256 /* Restore scan_req since we will try to scan again */
282 * wpa_supplicant_trigger_scan - Request driver to start a scan
284 * @params: Scan parameters
290 * @next: Whether or not to perform this scan as the next radio work
301 wpa_dbg(wpa_s, MSG_INFO, "Reject scan trigger since one is already pending");
327 wpa_printf(MSG_DEBUG, "First scan after crossing 6 GHz domain");
332 radio_add_work(wpa_s, 0, "scan", next, wpas_trigger_scan_cb,
350 wpa_dbg(wpa_s, MSG_DEBUG, "Starting delayed sched scan");
362 wpa_dbg(wpa_s, MSG_DEBUG, "Sched scan timeout - stopping it");
440 /* Optimize provisioning state scan based on GO information */
443 wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Scan only GO "
451 wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Scan only common "
465 * Perform a single-channel scan if the GO has already been
466 * discovered on another non-P2P interface. Note that a scan
468 * should already have sufficient IEs and scan results will be
487 "P2P: Scan only the known GO frequency %d MHz during invitation",
495 * Optimize scan based on GO information during persistent
505 "P2P: Scan only GO preferred band %d GHz during invitation",
523 "P2P: Scan only GO preferred frequency %d MHz during invitation",
536 * sure we do not get stuck in special invitation scan
549 * Optimize post-provisioning scan based on channel used
552 wpa_dbg(wpa_s, MSG_DEBUG, "WPS: Scan only frequency %u MHz "
563 /* Optimize provisioning scan based on already known channel */
564 wpa_dbg(wpa_s, MSG_DEBUG, "WPS: Scan only frequency %u MHz",
607 * parameter of the MLME-SCAN.request primitive represented in units of
739 wpa_printf(MSG_DEBUG, "MLD: Scan including only ML element");
930 wpa_printf(MSG_DEBUG, "Over max scan SSIDs for manual request");
934 wpa_printf(MSG_DEBUG, "Scan SSID (manual request): %s",
1006 * for adding the wildcard scan entry.
1040 wpa_printf(MSG_DEBUG, "Over max scan SSIDs from scan req: %u",
1073 wpa_dbg(wpa_s, MSG_DEBUG, "Skip scan - interface disabled");
1078 wpa_dbg(wpa_s, MSG_DEBUG, "Disconnected - do not scan");
1086 * the incoming scan request.
1088 wpa_dbg(wpa_s, MSG_DEBUG, "Already scanning - Reschedule the incoming scan req");
1095 wpa_dbg(wpa_s, MSG_DEBUG, "No enabled networks - do not scan");
1127 wpa_dbg(wpa_s, MSG_DEBUG, "Delay station mode scan while P2P operation is in progress");
1133 * Don't cancel the scan based on ongoing PNO; defer it. Some scans are
1135 * auto-reconnect, etc). Discarding the scan might hurt these processes.
1137 * starting PNO, so the periodic 100 ms attempts to run the scan do not
1142 wpa_dbg(wpa_s, MSG_DEBUG, "Defer scan - PNO is in progress");
1162 "without scan step");
1180 goto scan;
1185 wpa_printf(MSG_DEBUG, "Use specific SSIDs from SCAN command");
1192 wpa_printf(MSG_DEBUG, "P2P: Use specific SSID for scan during P2P group formation (p2p_in_provisioning=%d show_group_started=%d)",
1200 " (peer interface address) for scan",
1207 wpa_printf(MSG_DEBUG, "P2P: Use specific SSID for scan during invitation");
1215 MACSTR " for scan",
1219 wpa_printf(MSG_DEBUG, "P2P: No specific SSID known for scan during invitation");
1248 * User-initiated scan request in ap_scan == 2; scan with
1254 * Perform single-channel single-SSID scan for
1259 wpa_hexdump_ascii(MSG_DEBUG, "Scan SSID",
1276 * Reset the reattach flag so that we fall back to full scan if
1277 * this scan fails.
1288 wpa_hexdump_ascii(MSG_DEBUG, "Scan SSID",
1344 * waiting a long time for a wildcard scan.
1350 wpa_dbg(wpa_s, MSG_DEBUG, "Starting AP scan for "
1356 "Starting AP scan for specific SSID: %s",
1364 "the scan request");
1368 wpa_dbg(wpa_s, MSG_DEBUG, "Use passive scan based on manual request");
1371 "Use passive scan based on configuration");
1375 wpa_dbg(wpa_s, MSG_DEBUG, "Starting AP scan for wildcard "
1386 "Request driver to clear scan cache due to manual only_new=1 scan");
1392 wpa_dbg(wpa_s, MSG_DEBUG, "Limit manual scan to specified channels");
1399 "Limit select_network scan to specified channels");
1405 wpa_dbg(wpa_s, MSG_DEBUG, "Optimize scan based on previously "
1413 /* See if user specified frequencies. If so, scan only those. */
1417 "Optimize scan based on conf->initial_freq_list");
1421 "Optimize scan based on conf->freq_list");
1434 wpa_dbg(wpa_s, MSG_DEBUG, "Scan only the "
1482 "Scan a previously specified BSSID " MACSTR
1488 "Scan a previously specified BSSID " MACSTR,
1506 scan:
1511 * is operating there may not be need to scan other channels apart from
1535 wpa_dbg(wpa_s, MSG_DEBUG, "Scan only the current operating channels since all channels are already used");
1563 wpa_msg(wpa_s, MSG_WARNING, "Failed to initiate AP scan");
1567 /* Restore scan_req since we will try to scan again */
1610 * wpa_supplicant_req_scan - Schedule a scan for neighboring access points
1612 * @sec: Number of seconds after which to scan
1613 * @usec: Number of microseconds after which to scan
1615 * This function is used to schedule a scan for neighboring access points after
1624 "Ignore scan request (%d.%06d sec) on p2p_mgmt interface",
1632 wpa_dbg(wpa_s, MSG_DEBUG, "Rescheduling scan request: %d.%06d sec",
1635 wpa_dbg(wpa_s, MSG_DEBUG, "Ignore new scan request for %d.%06d sec since an earlier request is scheduled to trigger sooner",
1638 wpa_dbg(wpa_s, MSG_DEBUG, "Setting scan request: %d.%06d sec",
1646 * wpa_supplicant_delayed_sched_scan - Request a delayed scheduled scan
1648 * @sec: Number of seconds after which to scan
1649 * @usec: Number of microseconds after which to scan
1690 * wpa_supplicant_req_sched_scan - Start a periodic scheduled scan
1695 * access points repeating the scan continuously.
1740 * Normal scan is more reliable and faster for WPS
1745 wpa_dbg(wpa_s, MSG_DEBUG, "Use normal scan instead of "
1758 * When normal scan can speed up operations, use that for the
1760 * user space sleep more. We do this only if the normal scan
1764 wpa_dbg(wpa_s, MSG_DEBUG, "Use normal scan instead of "
1783 goto scan;
1837 "add to active scan ssid: %s",
1874 /* See if user specified frequencies. If so, scan only those. */
1877 "Optimize scan based on conf->freq_list");
1888 scan:
1892 * We cannot support multiple scan plans if the scan request includes
1893 * too many SSID's, so in this case use only the last scan plan and make
1915 "Scan interval too long(%u), use the maximum allowed(%u)",
1931 "Starting sched scan after %u seconds: interval %u timeout %d",
1937 "Starting sched scan after %u seconds (no timeout)",
1955 wpa_msg(wpa_s, MSG_WARNING, "Failed to initiate sched scan");
1961 /* If we have more SSIDs to scan, add a timeout so we scan them too */
1988 * wpa_supplicant_cancel_scan - Cancel a scheduled scan request
1991 * This function is used to cancel a scan request scheduled with
1996 wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling scan request");
2002 * wpa_supplicant_cancel_delayed_sched_scan - Stop a delayed scheduled scan
2005 * This function is used to stop a delayed scheduled scan.
2012 wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling delayed sched scan");
2022 * This function is used to stop a periodic scheduled scan.
2032 wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling sched scan");
2039 * wpa_supplicant_notify_scanning - Indicate possible scan state change
2044 * there may have been a change in scanning (scan started, completed, stopped).
2081 * wpa_scan_get_ie - Fetch a specified information element from a scan result
2082 * @res: Scan result entry
2086 * This function returns the first matching information element in the scan
2114 * wpa_scan_get_vendor_ie - Fetch vendor information element from a scan result
2115 * @res: Scan result entry
2119 * This function returns the first matching information element in the scan
2141 * wpa_scan_get_vendor_ie_beacon - Fetch vendor information from a scan result
2142 * @res: Scan result entry
2146 * This function returns the first matching information element in the scan
2176 * wpa_scan_get_vendor_ie_multi - Fetch vendor IE data from a scan result
2177 * @res: Scan result entry
2182 * specific information elements in the scan result. The caller is responsible
2373 /* Compare function for sorting scan results. Return >0 if @b is considered
2407 * The scan result estimates SNR over 20 MHz, while Data frames
2484 /* Compare function for sorting scan results when searching a WPS AP for
2539 wpa_printf(MSG_EXCESSIVE, "Sorted scan results");
2592 * This function is used to filter out specific BSSIDs from scan reslts mainly
2631 wpa_printf(MSG_DEBUG, "Filtered out %d scan results",
3171 * wpa_supplicant_get_scan_results - Get scan results
3174 * @new_scan: Whether a new scan was performed
3176 * Returns: Scan results, %NULL on failure
3178 * This function request the current scan results from the driver and updates
3193 wpa_dbg(wpa_s, MSG_DEBUG, "Failed to get scan results");
3214 wpa_dbg(wpa_s, MSG_DEBUG, "WPS: Order scan results with WPS "
3227 /* FLUSH command aborted an ongoing scan and these are the
3228 * results from the aborted scan. Do not process the results to
3231 "Do not update BSS table based on pending post-FLUSH scan results");
3247 * wpa_supplicant_update_scan_results - Update scan results from the driver
3253 * currently available scan results from the driver without requesting a new
3254 * scan. This is used in cases where the driver indicates an association
3273 * scan_only_handler - Reports scan results
3278 wpa_dbg(wpa_s, MSG_DEBUG, "Scan-only results received");
3459 "ongoing sched scan");
3468 "Schedule PNO after previous sched scan has stopped");
3546 /* Set one scan plan that will run infinitely */
3560 wpa_dbg(wpa_s, MSG_DEBUG, "Limit sched scan to specified channels");
3632 "scan: MAC randomization type %u != supported=%u",
3655 "scan: Invalid MAC randomization type=0x%x",
3682 "scan: Invalid MAC randomization type=0x%x",
3699 (os_strcmp(work->type, "scan") != 0 &&
3700 os_strcmp(work->type, "p2p-scan") != 0))
3702 wpa_dbg(wpa_s, MSG_DEBUG, "Abort an ongoing scan");
3706 wpa_dbg(wpa_s, MSG_DEBUG, "No ongoing scan/p2p-scan found to abort");
3721 wpa_printf(MSG_DEBUG, "Clear sched scan plans");
3744 "Invalid sched scan plan input: %s", token);
3750 "scan plan %u: Scan interval too long(%u), use the maximum allowed(%u)",
3764 "scan plan %u: Number of iterations cannot be zero",
3772 "scan plan %u: Too many iterations(%u), use the maximum allowed(%u)",
3780 "scan plan %u: interval=%u iterations=%u",
3785 wpa_printf(MSG_ERROR, "Invalid scan plans entry");
3791 "All scan plans but the last must specify a number of iterations");
3795 wpa_printf(MSG_DEBUG, "scan plan %u (last plan): interval=%u",
3800 "Too many scheduled scan plans (only %u supported)",
3803 "Use only the first %u scan plans, and the last one (in infinite loop)",
3818 wpa_printf(MSG_ERROR, "invalid scan plans list");
3827 * This function is used to cancel a running scheduled scan and to reset an
3828 * internal scan state to continue with a regular scan on the following
3844 /* simulate timeout to restart the sched scan */