Lines Matching defs:scan

970 			 * with a SCAN -> RUN transition on scan complete.
1390 struct iwi_notif_scan_complete *scan;
1402 /* Reset the timer, the scan is still going */
1407 scan = (struct iwi_notif_scan_complete *)(notif + 1);
1409 DPRINTFN(2, ("Scan completed (%u, %u)\n", scan->nchan,
1410 scan->status));
1415 * Monitor mode works by doing a passive scan to set
1417 * to abort a scan lest the firmware crash we scan
1419 * the scan when notified the sweep has completed.
1426 if (scan->status == IWI_SCAN_COMPLETED) {
1537 * into scan state. Instead tell the firmware
1539 * kick the state machine to scan.
2639 set_scan_type(struct iwi_scan_ext *scan, int ix, int scan_type)
2641 uint8_t *st = &scan->scan_type[ix / 2];
2652 /* We can only set one essid for a directed scan */
2679 * Start a scan on the current channel or all channels.
2687 struct iwi_scan_ext scan;
2703 memset(&scan, 0, sizeof scan);
2704 scan.full_scan_index = htole32(++sc->sc_scangen);
2705 scan.dwell_time[IWI_SCAN_TYPE_PASSIVE] = htole16(maxdwell);
2711 * that's not feasible (aborting a scan is problematic).
2713 scan.dwell_time[IWI_SCAN_TYPE_BROADCAST] = htole16(30);
2714 scan.dwell_time[IWI_SCAN_TYPE_BDIRECTED] = htole16(30);
2716 scan.dwell_time[IWI_SCAN_TYPE_BROADCAST] = htole16(maxdwell);
2717 scan.dwell_time[IWI_SCAN_TYPE_BDIRECTED] = htole16(maxdwell);
2720 /* We can only set one essid for a directed scan */
2731 * Convert scan list to run-length encoded channel list
2745 scan.channels[bstart] =
2751 DPRINTF(("truncating scan list\n"));
2754 scan.channels[next] = ieee80211_chan2ieee(ic, chan);
2755 set_scan_type(&scan, next, scan_type(ss, chan));
2758 scan.channels[bstart] = (next - bstart) | band;
2762 scan.channels[0] = 1 | scan_band(chan);
2763 scan.channels[1] = ieee80211_chan2ieee(ic, chan);
2764 set_scan_type(&scan, 1, scan_type(ss, chan));
2772 , le32toh(scan.full_scan_index)
2773 , le16toh(scan.dwell_time[IWI_SCAN_TYPE_PASSIVE])
2774 , le16toh(scan.dwell_time[IWI_SCAN_TYPE_BROADCAST])
2775 , le16toh(scan.dwell_time[IWI_SCAN_TYPE_BDIRECTED])
2779 int run = scan.channels[i];
2785 uint8_t type = scan.scan_type[i/2];
2786 printf(" %u/%s", scan.channels[i],
2794 return (iwi_cmd(sc, IWI_CMD_SCAN_EXT, &scan, sizeof scan));
3566 /* NB: don't try to abort scan; wait for firmware to finish */