Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:scan

24 #include "scan.h"
139 "end of scan list - go back to beginning");
174 "Failed to assign random MAC address for a scan");
185 "Request driver to clear scan cache due to local BSS flush");
190 * Store the obtained vendor scan cookie (if any) in wpa_s context.
191 * The current design is to allow only one scan request on each
192 * interface, hence having this scan cookie stored in wpa_s context is
195 * Revisit this logic if concurrent scan operations per interface
219 /* Restore scan_req since we will try to scan again */
243 * wpa_supplicant_trigger_scan - Request driver to start a scan
245 * @params: Scan parameters
254 wpa_dbg(wpa_s, MSG_INFO, "Reject scan trigger since one is already pending");
260 radio_add_work(wpa_s, 0, "scan", 0, wpas_trigger_scan_cb, ctx) < 0)
276 wpa_dbg(wpa_s, MSG_DEBUG, "Starting delayed sched scan");
288 wpa_dbg(wpa_s, MSG_DEBUG, "Sched scan timeout - stopping it");
366 /* Optimize provisioning state scan based on GO information */
369 wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Scan only GO "
377 wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Scan only common "
389 * Optimize scan based on GO information during persistent
394 wpa_dbg(wpa_s, MSG_DEBUG, "P2P: Scan only GO preferred frequency %d MHz during invitation",
405 * sure we do not get stuck in special invitation scan
417 * Optimize post-provisioning scan based on channel used
420 wpa_dbg(wpa_s, MSG_DEBUG, "WPS: Scan only frequency %u MHz "
431 /* Optimize provisioning scan based on already known channel */
432 wpa_dbg(wpa_s, MSG_DEBUG, "WPS: Scan only frequency %u MHz",
475 * parameter of the MLME-SCAN.request primitive represented in units of
694 wpa_printf(MSG_DEBUG, "Over max scan SSIDs for manual request");
698 wpa_printf(MSG_DEBUG, "Scan SSID (manual request): %s",
770 * for adding the wildcard scan entry.
804 wpa_printf(MSG_DEBUG, "Over max scan SSIDs from scan req: %u",
837 wpa_dbg(wpa_s, MSG_DEBUG, "Skip scan - interface disabled");
842 wpa_dbg(wpa_s, MSG_DEBUG, "Disconnected - do not scan");
850 * the incoming scan request.
852 wpa_dbg(wpa_s, MSG_DEBUG, "Already scanning - Reschedule the incoming scan req");
859 wpa_dbg(wpa_s, MSG_DEBUG, "No enabled networks - do not scan");
891 wpa_dbg(wpa_s, MSG_DEBUG, "Delay station mode scan while P2P operation is in progress");
897 * Don't cancel the scan based on ongoing PNO; defer it. Some scans are
899 * auto-reconnect, etc). Discarding the scan might hurt these processes.
901 * starting PNO, so the periodic 100 ms attempts to run the scan do not
906 wpa_dbg(wpa_s, MSG_DEBUG, "Defer scan - PNO is in progress");
926 "without scan step");
944 goto scan;
949 wpa_printf(MSG_DEBUG, "Use specific SSIDs from SCAN command");
956 wpa_printf(MSG_DEBUG, "P2P: Use specific SSID for scan during P2P group formation (p2p_in_provisioning=%d show_group_started=%d)",
967 wpa_printf(MSG_DEBUG, "P2P: Use specific SSID for scan during invitation");
973 wpa_printf(MSG_DEBUG, "P2P: No specific SSID known for scan during invitation");
1002 * User-initiated scan request in ap_scan == 2; scan with
1008 * Perform single-channel single-SSID scan for
1013 wpa_hexdump_ascii(MSG_DEBUG, "Scan SSID",
1030 * Reset the reattach flag so that we fall back to full scan if
1031 * this scan fails.
1042 wpa_hexdump_ascii(MSG_DEBUG, "Scan SSID",
1096 * waiting a long time for a wildcard scan.
1102 wpa_dbg(wpa_s, MSG_DEBUG, "Starting AP scan for "
1108 "Starting AP scan for specific SSID: %s",
1116 "the scan request");
1120 wpa_dbg(wpa_s, MSG_DEBUG, "Use passive scan based on manual request");
1123 "Use passive scan based on configuration");
1127 wpa_dbg(wpa_s, MSG_DEBUG, "Starting AP scan for wildcard "
1138 "Request driver to clear scan cache due to manual only_new=1 scan");
1144 wpa_dbg(wpa_s, MSG_DEBUG, "Limit manual scan to specified channels");
1151 "Limit select_network scan to specified channels");
1157 wpa_dbg(wpa_s, MSG_DEBUG, "Optimize scan based on previously "
1165 /* See if user specified frequencies. If so, scan only those. */
1168 "Optimize scan based on conf->freq_list");
1180 wpa_dbg(wpa_s, MSG_DEBUG, "Scan only the "
1232 "Scan a previously specified BSSID " MACSTR
1238 "Scan a previously specified BSSID " MACSTR,
1245 scan:
1250 * is operating there may not be need to scan other channels apart from
1268 wpa_dbg(wpa_s, MSG_DEBUG, "Scan only the current operating channels since all channels are already used");
1291 wpa_msg(wpa_s, MSG_WARNING, "Failed to initiate AP scan");
1295 /* Restore scan_req since we will try to scan again */
1333 * wpa_supplicant_req_scan - Schedule a scan for neighboring access points
1335 * @sec: Number of seconds after which to scan
1336 * @usec: Number of microseconds after which to scan
1338 * This function is used to schedule a scan for neighboring access points after
1347 "Ignore scan request (%d.%06d sec) on p2p_mgmt interface",
1355 wpa_dbg(wpa_s, MSG_DEBUG, "Rescheduling scan request: %d.%06d sec",
1358 wpa_dbg(wpa_s, MSG_DEBUG, "Ignore new scan request for %d.%06d sec since an earlier request is scheduled to trigger sooner",
1361 wpa_dbg(wpa_s, MSG_DEBUG, "Setting scan request: %d.%06d sec",
1369 * wpa_supplicant_delayed_sched_scan - Request a delayed scheduled scan
1371 * @sec: Number of seconds after which to scan
1372 * @usec: Number of microseconds after which to scan
1413 * wpa_supplicant_req_sched_scan - Start a periodic scheduled scan
1418 * access points repeating the scan continuously.
1463 * Normal scan is more reliable and faster for WPS
1468 wpa_dbg(wpa_s, MSG_DEBUG, "Use normal scan instead of "
1481 * When normal scan can speed up operations, use that for the
1483 * user space sleep more. We do this only if the normal scan
1487 wpa_dbg(wpa_s, MSG_DEBUG, "Use normal scan instead of "
1506 goto scan;
1560 "add to active scan ssid: %s",
1597 /* See if user specified frequencies. If so, scan only those. */
1600 "Optimize scan based on conf->freq_list");
1611 scan:
1615 * We cannot support multiple scan plans if the scan request includes
1616 * too many SSID's, so in this case use only the last scan plan and make
1638 "Scan interval too long(%u), use the maximum allowed(%u)",
1654 "Starting sched scan after %u seconds: interval %u timeout %d",
1660 "Starting sched scan after %u seconds (no timeout)",
1682 wpa_msg(wpa_s, MSG_WARNING, "Failed to initiate sched scan");
1688 /* If we have more SSIDs to scan, add a timeout so we scan them too */
1715 * wpa_supplicant_cancel_scan - Cancel a scheduled scan request
1718 * This function is used to cancel a scan request scheduled with
1723 wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling scan request");
1729 * wpa_supplicant_cancel_delayed_sched_scan - Stop a delayed scheduled scan
1732 * This function is used to stop a delayed scheduled scan.
1739 wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling delayed sched scan");
1749 * This function is used to stop a periodic scheduled scan.
1759 wpa_dbg(wpa_s, MSG_DEBUG, "Cancelling sched scan");
1766 * wpa_supplicant_notify_scanning - Indicate possible scan state change
1771 * there may have been a change in scanning (scan started, completed, stopped).
1808 * wpa_scan_get_ie - Fetch a specified information element from a scan result
1809 * @res: Scan result entry
1813 * This function returns the first matching information element in the scan
1829 * wpa_scan_get_vendor_ie - Fetch vendor information element from a scan result
1830 * @res: Scan result entry
1834 * This function returns the first matching information element in the scan
1859 * wpa_scan_get_vendor_ie_beacon - Fetch vendor information from a scan result
1860 * @res: Scan result entry
1864 * This function returns the first matching information element in the scan
1896 * wpa_scan_get_vendor_ie_multi - Fetch vendor IE data from a scan result
1897 * @res: Scan result entry
1902 * specific information elements in the scan result. The caller is responsible
1950 /* Compare function for sorting scan results. Return >0 if @b is considered
2016 /* Compare function for sorting scan results when searching a WPS AP for
2071 wpa_printf(MSG_EXCESSIVE, "Sorted scan results");
2111 * This function is used to filter out specific BSSIDs from scan reslts mainly
2151 wpa_printf(MSG_DEBUG, "Filtered out %d scan results",
2341 * wpa_supplicant_get_scan_results - Get scan results
2344 * @new_scan: Whether a new scan was performed
2345 * Returns: Scan results, %NULL on failure
2347 * This function request the current scan results from the driver and updates
2361 wpa_dbg(wpa_s, MSG_DEBUG, "Failed to get scan results");
2382 wpa_dbg(wpa_s, MSG_DEBUG, "WPS: Order scan results with WPS "
2395 /* FLUSH command aborted an ongoing scan and these are the
2396 * results from the aborted scan. Do not process the results to
2399 "Do not update BSS table based on pending post-FLUSH scan results");
2415 * wpa_supplicant_update_scan_results - Update scan results from the driver
2420 * currently available scan results from the driver without requesting a new
2421 * scan. This is used in cases where the driver indicates an association
2439 * scan_only_handler - Reports scan results
2444 wpa_dbg(wpa_s, MSG_DEBUG, "Scan-only results received");
2635 "ongoing sched scan");
2644 "Schedule PNO after previous sched scan has stopped");
2722 /* Set one scan plan that will run infinitely */
2736 wpa_dbg(wpa_s, MSG_DEBUG, "Limit sched scan to specified channels");
2812 "scan: MAC randomization type %u != supported=%u",
2835 "scan: Invalid MAC randomization type=0x%x",
2853 (os_strcmp(work->type, "scan") != 0 &&
2854 os_strcmp(work->type, "p2p-scan") != 0))
2856 wpa_dbg(wpa_s, MSG_DEBUG, "Abort an ongoing scan");
2860 wpa_dbg(wpa_s, MSG_DEBUG, "No ongoing scan/p2p-scan found to abort");
2875 wpa_printf(MSG_DEBUG, "Clear sched scan plans");
2898 "Invalid sched scan plan input: %s", token);
2904 "scan plan %u: Scan interval too long(%u), use the maximum allowed(%u)",
2918 "scan plan %u: Number of iterations cannot be zero",
2926 "scan plan %u: Too many iterations(%u), use the maximum allowed(%u)",
2934 "scan plan %u: interval=%u iterations=%u",
2939 wpa_printf(MSG_ERROR, "Invalid scan plans entry");
2945 "All scan plans but the last must specify a number of iterations");
2949 wpa_printf(MSG_DEBUG, "scan plan %u (last plan): interval=%u",
2954 "Too many scheduled scan plans (only %u supported)",
2957 "Use only the first %u scan plans, and the last one (in infinite loop)",
2972 wpa_printf(MSG_ERROR, "invalid scan plans list");
2981 * This function is used to cancel a running scheduled scan and to reset an
2982 * internal scan state to continue with a regular scan on the following
2998 /* simulate timeout to restart the sched scan */