Lines Matching refs:scan

15 /* For active scan, listen ACTIVE_DWELL_TIME (msec) on each channel after
24 /* For passive scan, listen PASSIVE_DWELL_TIME (msec) on each channel.
26 * For the most reliable scan, set > AP beacon interval (typically 100msec). */
46 * to receive scan abort command or it does not perform
47 * hardware scan currently */
59 /* The scan abort will return 1 for success or
61 * due to simply not being in an active scan which
62 * can occur if we send the scan abort before we
63 * the microcode has notified us that a scan is
80 /* check if scan was requested from mac80211 */
82 IWL_DEBUG_SCAN(priv, "Complete scan in mac80211\n");
100 IWL_DEBUG_SCAN(priv, "Completed scan.\n");
106 IWL_DEBUG_SCAN(priv, "Aborted scan completed.\n");
116 /* Check if mac80211 requested scan during our internal scan */
120 /* If so request a new scan */
125 "failed to initiate pending scan: %d\n", err);
149 IWL_DEBUG_SCAN(priv, "Forcing scan end while not scanning\n");
153 IWL_DEBUG_SCAN(priv, "Forcing scan end\n");
168 IWL_DEBUG_SCAN(priv, "Not performing scan to abort\n");
179 IWL_DEBUG_SCAN(priv, "Send scan abort failed %d\n", ret);
182 IWL_DEBUG_SCAN(priv, "Successfully send scan abort\n");
186 * iwl_scan_cancel - Cancel any currently executing HW scan
190 IWL_DEBUG_SCAN(priv, "Queuing abort scan\n");
196 * iwl_scan_cancel_timeout - Cancel any currently executing HW scan
197 * @ms: amount of time to wait (in milliseconds) for scan to abort
222 * Since we need to be able to issue a new scan right
226 * a possible new scan.
301 * When aborting, we run the scan completed background work inline
304 * queueing the work. Also, since the scan abort waits for SCAN_HW
337 /* scan handlers */
425 /* Return valid, unused, channel for a passive scan to reset the RF */
554 IWL_DEBUG_SCAN(priv, "total channels to scan %d\n", added);
615 struct iwl_scan_cmd *scan;
649 "fail to allocate memory for scan\n");
656 "memory needed for scan grew unexpectedly\n");
659 scan = priv->scan_cmd;
660 memset(scan, 0, priv->scan_cmd_size);
662 scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH;
663 scan->quiet_time = IWL_ACTIVE_QUIET_TIME;
681 scan->suspend_time = 0;
682 scan->max_out_time = cpu_to_le32(200 * 1024);
689 scan->suspend_time = cpu_to_le32(scan_suspend_time);
696 IWL_DEBUG_SCAN(priv, "Start internal passive scan.\n");
699 * dwell is >= quiet; since we use passive scan it'll
702 scan->quiet_time = cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME);
707 IWL_DEBUG_SCAN(priv, "Kicking off active scan\n");
720 scan->direct_scan[p].id = WLAN_EID_SSID;
721 scan->direct_scan[p].len =
723 memcpy(scan->direct_scan[p].ssid,
731 IWL_DEBUG_SCAN(priv, "Start passive scan.\n");
735 scan->tx_cmd.tx_flags = TX_CMD_FLG_SEQ_CTL_MSK;
736 scan->tx_cmd.sta_id = ctx->bcast_sta_id;
737 scan->tx_cmd.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE;
741 scan->flags = RXON_FLG_BAND_24G_MSK | RXON_FLG_AUTO_DETECT_MSK;
759 scan->tx_cmd.tx_flags |= TX_CMD_FLG_IGNORE_BT;
765 IWL_WARN(priv, "Invalid scan band\n");
787 * scan changes, and the threshold behaves as a flag in those
791 scan->good_CRC_th = is_active ? IWL_GOOD_CRC_TH_DEFAULT :
794 scan->good_CRC_th = is_active ? IWL_GOOD_CRC_TH_DEFAULT :
810 scan->tx_cmd.rate_n_flags = iwl_hw_set_rate_n_flags(rate, rate_flags);
842 scan->rx_chain = cpu_to_le16(rx_chain);
846 (struct ieee80211_mgmt *)scan->data,
851 scan_cmd_size - sizeof(*scan));
856 (struct ieee80211_mgmt *)scan->data,
859 scan_cmd_size - sizeof(*scan));
864 scan->tx_cmd.len = cpu_to_le16(cmd_len);
866 scan->filter_flags |= (RXON_FILTER_ACCEPT_GRP_MSK |
871 scan->channel_count =
873 (void *)&scan->data[cmd_len]);
876 scan->channel_count =
879 (void *)&scan->data[cmd_len]);
883 if (scan->channel_count == 0) {
884 IWL_DEBUG_SCAN(priv, "channel count %d\n", scan->channel_count);
888 cmd.len[0] += le16_to_cpu(scan->tx_cmd.len) +
889 scan->channel_count * sizeof(struct iwl_scan_channel);
890 cmd.data[0] = scan;
892 scan->len = cpu_to_le16(cmd.len[0]);
894 /* set scan bit here for PAN params */
933 IWL_WARN(priv, "Request scan called when driver not ready.\n");
939 "Multiple concurrent scan requests in parallel.\n");
972 * internal short scan, this function should only been called while associated.
985 IWL_DEBUG_SCAN(priv, "Start internal scan\n");
990 IWL_DEBUG_SCAN(priv, "Internal scan already in progress\n");
1000 IWL_DEBUG_SCAN(priv, "failed to start internal short scan\n");
1012 /* Since we are here firmware does not finish scan and
1014 * send abort command, just force scan complete to mac80211 */
1024 IWL_DEBUG_SCAN(priv, "Abort scan work\n");
1027 * report back scan completed notification */