Lines Matching full:scan
59 #define ISCAN_INTERRUPT 0x0004 /* interrupt current scan */
60 #define ISCAN_CANCEL 0x0008 /* cancel current scan */
62 #define ISCAN_ABORT 0x0010 /* end the scan immediately */
63 #define ISCAN_RUNNING 0x0020 /* scan was started */
66 unsigned long ss_scanend; /* time scan must stop */
67 u_int ss_duration; /* duration for next scan */
68 struct task ss_scan_start; /* scan start */
69 struct timeout_task ss_scan_curchan; /* scan execution */
75 * scan. This value should be large enough to catch most
93 MALLOC_DEFINE(M_80211_SCAN, "80211scan", "802.11 scan state");
106 ("scan still running"));
129 * TODO: all of the vap scan calls should be methods!
161 * Start a scan unless one is already going.
164 ieee80211_swscan_start_scan_locked(const struct ieee80211_scanner *scan,
176 "%s: scan inhibited by pending channel change\n", __func__);
179 "%s: %s scan, duration %u mindwell %u maxdwell %u, desired mode %s, %s%s%s%s%s%s\n"
192 ieee80211_scan_update_locked(vap, scan);
207 /* Set duration for this particular scan */
213 /* NB: scan_start must be before the scan runtask */
221 /* Start scan task */
227 "%s: %s scan already in progress\n", __func__,
234 * Start a scan unless one is already going.
239 ieee80211_swscan_start_scan(const struct ieee80211_scanner *scan,
250 result = ieee80211_swscan_start_scan_locked(scan, vap, flags, duration,
258 * Check the scan cache for an ap/channel to use; if that
259 * fails then kick off a new scan.
266 ieee80211_swscan_check_scan(const struct ieee80211_scanner *scan,
294 * something is already in the scan cache we can
320 result = ieee80211_swscan_start_scan_locked(scan, vap, flags, duration,
327 * Restart a previous scan. If the previous scan completed
331 ieee80211_swscan_bg_scan(const struct ieee80211_scanner *scan,
354 "%s: %s scan, ticks %u duration %u\n", __func__,
358 ieee80211_scan_update_locked(vap, scan);
362 * A background scan does not select a new sta; it
363 * just refreshes the scan cache. Also, indicate
364 * the scan logic should follow the beacon schedule:
365 * we go off-channel and scan for a while, then
369 * the scan is complete we leave power save mode.
372 * (and background scan) automatically by way of the
379 /* if previous scan completed, restart */
386 * NB: beware of the scan cache being flushed;
414 "%s: %s scan already in progress\n", __func__,
423 * Taskqueue work to cancel a scan.
425 * Note: for offload scan devices, we may want to call into the
442 "%s: %s %s scan\n", func,
447 /* clear bg scan NOPICK */
449 /* mark request and wake up the scan task */
463 * Cancel any scan currently going on for the specified vap.
472 * Cancel any scan currently going on.
497 /* wake up the scan task */
502 * Manually stop a scan that is currently running.
503 * Provided for drivers that are not able to scan single channels
533 * Full-offload scan devices don't require this.
556 * Scan curchan. If this is an active scan and the channel
639 "%s: no channels to scan\n", __func__);
648 * those devices manage scan/traffic differently.
668 /* XXX scan state can change! Re-validate scan state! */
690 * Note: only /end/ the scan if we're CANCEL rather than
693 * We can stop the scan if we hit cancel, but we shouldn't
694 * call scan_end(ss, 1) if we're just PAUSEing the scan.
722 * Watch for truncation due to the scan end time.
748 * Perform the channel change and scan unlocked so the driver
756 * Scan curchan. Drivers for "intelligent hardware"
763 * prepare/initiate the hardware for the scan (if at all).
768 /* XXX scan state can change! Re-validate scan state! */
804 /* XXX scan state can change! Re-validate scan state! */
813 "%s: OOPS! scan cancelled during driver call (1) (ss_iflags=0x%x)!\n",
820 * Record scan complete time. Note that we also do
821 * this when canceled so any background scan will
840 * If not canceled and scan completed, do post-processing.
843 * notify the driver to end the scan above to avoid having
844 * rx frames alter the scan candidate list.
884 "%s: OOPS! scan cancelled during driver call (2) (ss_iflags=0x%x)!\n",
903 * Clear the SCAN bit first in case frames are
911 * Drop out of power save mode when a scan has
912 * completed. If this scan was prematurely terminated
913 * because it is a background scan then don't notify
921 * If we're not a scan offload device, come back out of
928 "%s: Dropping out of scan; ss_next=%u, ss_last=%u\n",
935 /* send 'scan done' event if not interrupted due to traffic. */
963 * using scan state setup on the initial entry to the timer
1016 * Default scan attach method.
1028 /* Allocate initial scan state */