Lines Matching full:scan
2 * WPA Supplicant - background scan and roaming module: simple
17 #include "scan.h"
30 int short_scan_count; /* counter for scans using short scan interval */
31 int max_short_scans; /* maximum times we short-scan before back-off */
52 /* Try BTM x times, scan on x + 1 */ in bgscan_simple_btm_query()
65 /* Fall through and do regular scan */ in bgscan_simple_btm_query()
69 /* Start a new timeout for the next one. We don't have scan callback to in bgscan_simple_btm_query()
98 wpa_printf(MSG_DEBUG, "bgscan simple: Request a background scan"); in bgscan_simple_timeout()
100 wpa_printf(MSG_DEBUG, "bgscan simple: Failed to trigger scan"); in bgscan_simple_timeout()
110 "off to long scan interval"); in bgscan_simple_timeout()
114 * If we lasted a long scan interval without any in bgscan_simple_timeout()
115 * CQM triggers, decrease the short-scan count, in bgscan_simple_timeout()
116 * which allows 1 more short-scan interval to in bgscan_simple_timeout()
142 wpa_printf(MSG_ERROR, "bgscan simple: Missing scan interval " in bgscan_simple_get_params()
193 /* Poll for signal info to set initial scan interval */ in bgscan_simple_init()
199 wpa_printf(MSG_DEBUG, "bgscan simple: Init scan interval: %d", in bgscan_simple_init()
206 * reasonable to assume that a scan was completed recently. This makes in bgscan_simple_init()
207 * us skip an immediate new scan in cases where the current signal in bgscan_simple_init()
233 wpa_printf(MSG_DEBUG, "bgscan simple: scan result notification"); in bgscan_simple_notify_scan()
240 * A more advanced bgscan could process scan results internally, select in bgscan_simple_notify_scan()
263 int scan = 0; in bgscan_simple_notify_signal_change() local
283 * performed a scan, and we haven't depleted our in bgscan_simple_notify_signal_change()
284 * budget for short-scans, perform a scan in bgscan_simple_notify_signal_change()
287 scan = 1; in bgscan_simple_notify_signal_change()
291 * Restart scan interval timer if currently scheduled in bgscan_simple_notify_signal_change()
292 * scan is too far in the future. in bgscan_simple_notify_signal_change()
309 * Signal dropped further 4 dB. Request a new scan if we have in bgscan_simple_notify_signal_change()
314 scan = 1; in bgscan_simple_notify_signal_change()
317 if (scan) { in bgscan_simple_notify_signal_change()
318 wpa_printf(MSG_DEBUG, "bgscan simple: Trigger immediate scan"); in bgscan_simple_notify_signal_change()