Lines Matching refs:params
144 struct wpa_driver_auth_params params;
165 os_memset(¶ms, 0, sizeof(params));
168 params.freq = bss->freq;
169 params.bssid = bss->bssid;
170 params.ssid = bss->ssid;
171 params.ssid_len = bss->ssid_len;
172 params.p2p = ssid->p2p_group;
174 if (wpa_s->sme.ssid_len != params.ssid_len ||
175 os_memcmp(wpa_s->sme.ssid, params.ssid, params.ssid_len) != 0)
178 wpa_s->sme.freq = params.freq;
179 os_memcpy(wpa_s->sme.ssid, params.ssid, params.ssid_len);
180 wpa_s->sme.ssid_len = params.ssid_len;
182 params.auth_alg = WPA_AUTH_ALG_OPEN;
187 params.auth_alg = WPA_AUTH_ALG_LEAP;
189 params.auth_alg |= WPA_AUTH_ALG_LEAP;
194 params.auth_alg);
196 params.auth_alg = ssid->auth_alg;
198 "0x%x", params.auth_alg);
210 params.auth_alg = WPA_AUTH_ALG_SAE;
218 params.wep_key[i] = ssid->wep_key[i];
219 params.wep_key_len[i] = ssid->wep_key_len[i];
221 params.wep_tx_keyidx = ssid->wep_tx_keyidx;
317 params.auth_alg = WPA_AUTH_ALG_FT;
318 params.ie = wpa_s->sme.ft_ies;
319 params.ie_len = wpa_s->sme.ft_ies_len;
383 if (params.auth_alg == WPA_AUTH_ALG_SAE) {
391 params.sae_data = wpabuf_head(resp);
392 params.sae_data_len = wpabuf_len(resp);
401 " (SSID='%s' freq=%d MHz)", MAC2STR(params.bssid),
402 wpa_ssid_txt(params.ssid, params.ssid_len), params.freq);
413 wpa_s->sme.auth_alg = params.auth_alg;
414 if (wpa_drv_authenticate(wpa_s, ¶ms) < 0) {
629 struct wpa_driver_associate_params params;
640 os_memset(¶ms, 0, sizeof(params));
641 params.bssid = bssid;
642 params.ssid = wpa_s->sme.ssid;
643 params.ssid_len = wpa_s->sme.ssid_len;
644 params.freq = wpa_s->sme.freq;
645 params.bg_scan_period = wpa_s->current_ssid ?
647 params.wpa_ie = wpa_s->sme.assoc_req_ie_len ?
649 params.wpa_ie_len = wpa_s->sme.assoc_req_ie_len;
650 params.pairwise_suite =
652 params.group_suite = wpa_cipher_to_suite_driver(wpa_s->group_cipher);
656 params.htcaps = (u8 *) &htcaps;
657 params.htcaps_mask = (u8 *) &htcaps_mask;
658 wpa_supplicant_apply_ht_overrides(wpa_s, wpa_s->current_ssid, ¶ms);
663 params.vhtcaps = &vhtcaps;
664 params.vhtcaps_mask = &vhtcaps_mask;
665 wpa_supplicant_apply_vht_overrides(wpa_s, wpa_s->current_ssid, ¶ms);
669 params.wpa_ie = wpa_s->sme.ft_ies;
670 params.wpa_ie_len = wpa_s->sme.ft_ies_len;
673 params.mode = mode;
674 params.mgmt_frame_protection = wpa_s->sme.mfp;
676 params.prev_bssid = wpa_s->sme.prev_bssid;
679 " (SSID='%s' freq=%d MHz)", MAC2STR(params.bssid),
680 params.ssid ? wpa_ssid_txt(params.ssid, params.ssid_len) : "",
681 params.freq);
685 if (params.wpa_ie == NULL ||
686 ieee802_11_parse_elems(params.wpa_ie, params.wpa_ie_len, &elems, 0)
692 params.wpa_proto = WPA_PROTO_RSN;
696 params.wpa_proto = WPA_PROTO_WPA;
702 params.p2p = 1;
705 params.uapsd = wpa_s->parent->sta_uapsd;
707 params.uapsd = -1;
709 if (wpa_drv_associate(wpa_s, ¶ms) < 0) {
1058 struct wpa_driver_scan_params *params)
1067 params->freqs = os_zalloc(sizeof(int));
1071 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int));
1072 if (params->freqs == NULL)
1077 params->freqs[count++] = mode->channels[i].freq;
1085 struct wpa_driver_scan_params params;
1092 os_memset(¶ms, 0, sizeof(params));
1093 wpa_setband_scan_freqs_list(wpa_s, HOSTAPD_MODE_IEEE80211G, ¶ms);
1096 if (wpa_supplicant_trigger_scan(wpa_s, ¶ms))
1100 os_free(params.freqs);