Lines Matching refs:scan

56 #define	ISCAN_CANCEL	0x0004		/* cancel current scan */
57 #define ISCAN_ABORT 0x0008 /* end the scan immediately */
59 unsigned long ss_scanend; /* time scan must stop */
60 u_int ss_duration; /* duration for next scan */
61 struct task ss_scan_task; /* scan execution */
62 struct cv ss_scan_cv; /* scan signal */
63 struct callout ss_scan_timer; /* scan timer */
69 * scan. This value should be large enough to catch most
112 cv_init(&ss->ss_scan_cv, "scan");
138 ("scan still running"));
236 const struct ieee80211_scanner *scan)
240 scanners[mode] = scan;
245 const struct ieee80211_scanner *scan)
249 if (scanners[mode] == scan)
254 ieee80211_scanner_unregister_all(const struct ieee80211_scanner *scan)
259 if (scanners[m] == scan)
273 const struct ieee80211_scanner *scan)
281 if (ss->ss_vap != vap || ss->ss_ops != scan) {
294 if (ss->ss_ops != scan) {
297 * case where a single scan module implements multiple
298 * policies by using different scan ops but a common
303 if (scan == NULL || ss->ss_ops == NULL ||
304 ss->ss_ops->scan_attach != scan->scan_attach) {
307 if (scan != NULL && !scan->scan_attach(ss)) {
310 scan = NULL;
313 ss->ss_ops = scan;
360 if_printf(vap->iv_ifp, "scan set ");
383 * Start a scan unless one is already going.
386 start_scan_locked(const struct ieee80211_scanner *scan,
398 "%s: scan inhibited by pending channel change\n", __func__);
401 "%s: %s scan, duration %u mindwell %u maxdwell %u, desired mode %s, %s%s%s%s%s%s\n"
414 scan_update_locked(vap, scan);
436 /* NB: scan_start must be before the scan runtask */
448 "%s: %s scan already in progress\n", __func__,
455 * Start a scan unless one is already going.
463 const struct ieee80211_scanner *scan;
466 scan = ieee80211_scanner_get(vap->iv_opmode);
467 if (scan == NULL) {
476 result = start_scan_locked(scan, vap, flags, duration,
484 * Check the scan cache for an ap/channel to use; if that
485 * fails then kick off a new scan.
494 const struct ieee80211_scanner *scan;
497 scan = ieee80211_scanner_get(vap->iv_opmode);
498 if (scan == NULL) {
507 * Check if there's a list of scan candidates already.
513 "%s: %s scan, %s%s%s%s%s\n"
523 if (ss->ss_ops != scan) {
527 scan_update_locked(vap, scan);
545 * something is already in the scan cache we can
565 result = start_scan_locked(scan, vap, flags, duration,
573 * Check the scan cache for an ap/channel to use; if that fails
574 * then kick off a scan using the current settings.
586 * Restart a previous scan. If the previous scan completed
594 const struct ieee80211_scanner *scan;
596 scan = ieee80211_scanner_get(vap->iv_opmode);
597 if (scan == NULL) {
617 "%s: %s scan, ticks %u duration %lu\n", __func__,
621 scan_update_locked(vap, scan);
625 * A background scan does not select a new sta; it
626 * just refreshes the scan cache. Also, indicate
627 * the scan logic should follow the beacon schedule:
628 * we go off-channel and scan for a while, then
632 * the scan is complete we leave power save mode.
635 * (and background scan) automatically by way of the
642 /* if previous scan completed, restart */
649 * NB: beware of the scan cache being flushed;
676 "%s: %s scan already in progress\n", __func__,
686 * Cancel any scan currently going on for the specified vap.
699 "%s: cancel %s scan\n", __func__,
703 /* clear bg scan NOPICK and mark cancel request */
706 /* wake up the scan task */
713 * Cancel any scan currently going on.
725 "%s: cancel %s scan\n", __func__,
729 /* clear bg scan NOPICK and mark cancel request */
732 /* wake up the scan task */
748 /* wake up the scan task */
755 * Public access to scan_next for drivers that are not able to scan single
808 * Scan curchan. If this is an active scan and the channel
869 "%s: no channels to scan\n", __func__);
906 * Watch for truncation due to the scan end time.
931 * Perform the channel change and scan unlocked so the driver
946 * prepare/initiate the hardware for the scan (if at all), the
960 /* Wait to be signalled to scan the next channel */
971 * Record scan complete time. Note that we also do
972 * this when canceled so any background scan will
991 * If not canceled and scan completed, do post-processing.
994 * notify the driver to end the scan above to avoid having
995 * rx frames alter the scan candidate list.
1036 * Drop out of power save mode when a scan has
1037 * completed. If this scan was prematurely terminated
1038 * because it is a background scan then don't notify
1121 * using scan state setup on the initial entry to the timer
1157 * Timeout/age scan cache entries; called from sta timeout
1170 * Mark a scan cache entry after a successful associate.
1185 * Demerit a scan cache entry after failing to associate.
1201 * Iterate over the contents of the scan cache.
1214 * Flush the contents of the scan cache.
1228 * Check the scan cache for an ap/channel to use; if that
1229 * fails then kick off a new scan.
1244 "%s: scan module does not support picking a channel, "