Lines Matching refs:params
215 * @params: Scan parameters
219 struct wpa_driver_scan_params *params)
225 ret = wpa_drv_scan(wpa_s, params);
265 struct wpa_driver_scan_params *params,
272 ret = wpa_drv_sched_scan(wpa_s, params, interval * 1000);
335 struct wpa_supplicant *wpa_s, struct wpa_driver_scan_params *params)
338 if (params->freqs == NULL && wpa_s->p2p_in_provisioning &&
346 params->freqs = os_zalloc(2 * sizeof(int));
347 if (params->freqs)
348 params->freqs[0] = wpa_s->go_params->freq;
353 int_array_concat(¶ms->freqs,
355 if (params->freqs)
356 int_array_sort_unique(params->freqs);
363 if (params->freqs == NULL && wpa_s->after_wps && wpa_s->wps_freq) {
370 params->freqs = os_zalloc(2 * sizeof(int));
371 if (params->freqs)
372 params->freqs[0] = wpa_s->wps_freq;
376 if (params->freqs == NULL && wpa_s->known_wps_freq && wpa_s->wps_freq)
381 params->freqs = os_zalloc(2 * sizeof(int));
382 if (params->freqs)
383 params->freqs[0] = wpa_s->wps_freq;
533 struct wpa_driver_scan_params params;
606 os_memset(¶ms, 0, sizeof(params));
640 params.ssids[0].ssid = wpa_s->go_params->ssid;
641 params.ssids[0].ssid_len = wpa_s->go_params->ssid_len;
642 params.num_ssids = 1;
682 params.ssids[params.num_ssids].ssid =
684 params.ssids[params.num_ssids].ssid_len =
686 params.num_ssids++;
687 if (params.num_ssids + 1 >= max_ssids)
701 if ((params.freqs || !freqs_set) && tssid->scan_freq) {
702 int_array_concat(¶ms.freqs,
705 os_free(params.freqs);
706 params.freqs = NULL;
710 int_array_sort_unique(params.freqs);
720 params.ssids[0].ssid = NULL;
721 params.ssids[0].ssid_len = 0;
738 params.num_ssids++;
741 params.num_ssids++;
749 wpa_supplicant_optimize_freqs(wpa_s, ¶ms);
757 if (params.freqs == NULL && wpa_s->next_scan_freqs) {
760 params.freqs = wpa_s->next_scan_freqs;
765 params.filter_ssids = wpa_supplicant_build_filter_ssids(
766 wpa_s->conf, ¶ms.num_filter_ssids);
768 params.extra_ies = wpabuf_head(extra_ie);
769 params.extra_ies_len = wpabuf_len(extra_ie);
779 params.p2p_probe = 1;
783 scan_params = ¶ms;
797 !scan_params->freqs && !params.freqs &&
807 params.freqs = os_zalloc(sizeof(int) * 2);
808 if (params.freqs)
809 params.freqs[0] = freq;
810 scan_params->freqs = params.freqs;
818 os_free(params.freqs);
819 os_free(params.filter_ssids);
931 struct wpa_driver_scan_params params;
999 os_memset(¶ms, 0, sizeof(params));
1002 params.filter_ssids = os_zalloc(wpa_s->max_match_sets *
1042 params.num_ssids++;
1049 if (params.num_filter_ssids < wpa_s->max_match_sets &&
1050 params.filter_ssids && ssid->ssid && ssid->ssid_len) {
1053 os_memcpy(params.filter_ssids[params.num_filter_ssids].ssid,
1055 params.filter_ssids[params.num_filter_ssids].ssid_len =
1057 params.num_filter_ssids++;
1058 } else if (params.filter_ssids && ssid->ssid && ssid->ssid_len)
1062 os_free(params.filter_ssids);
1063 params.filter_ssids = NULL;
1064 params.num_filter_ssids = 0;
1068 if (params.num_ssids == max_sched_scan_ssids)
1073 params.ssids[params.num_ssids].ssid =
1075 params.ssids[params.num_ssids].ssid_len =
1077 params.num_ssids++;
1078 if (params.num_ssids >= max_sched_scan_ssids) {
1094 if (params.num_filter_ssids == 0) {
1095 os_free(params.filter_ssids);
1096 params.filter_ssids = NULL;
1101 params.extra_ies = wpabuf_head(extra_ie);
1102 params.extra_ies_len = wpabuf_len(extra_ie);
1105 scan_params = ¶ms;
1121 os_free(params.filter_ssids);