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