Lines Matching refs:conf
38 static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf, in hostapd_wpa_auth_conf() argument
45 wconf->wpa = conf->wpa; in hostapd_wpa_auth_conf()
46 wconf->extended_key_id = conf->extended_key_id; in hostapd_wpa_auth_conf()
47 wconf->wpa_key_mgmt = conf->wpa_key_mgmt; in hostapd_wpa_auth_conf()
48 wconf->wpa_pairwise = conf->wpa_pairwise; in hostapd_wpa_auth_conf()
49 wconf->wpa_group = conf->wpa_group; in hostapd_wpa_auth_conf()
50 wconf->wpa_group_rekey = conf->wpa_group_rekey; in hostapd_wpa_auth_conf()
51 wconf->wpa_strict_rekey = conf->wpa_strict_rekey; in hostapd_wpa_auth_conf()
52 wconf->wpa_gmk_rekey = conf->wpa_gmk_rekey; in hostapd_wpa_auth_conf()
53 wconf->wpa_ptk_rekey = conf->wpa_ptk_rekey; in hostapd_wpa_auth_conf()
54 wconf->wpa_group_update_count = conf->wpa_group_update_count; in hostapd_wpa_auth_conf()
56 conf->wpa_disable_eapol_key_retries; in hostapd_wpa_auth_conf()
57 wconf->wpa_pairwise_update_count = conf->wpa_pairwise_update_count; in hostapd_wpa_auth_conf()
58 wconf->rsn_pairwise = conf->rsn_pairwise; in hostapd_wpa_auth_conf()
59 wconf->rsn_preauth = conf->rsn_preauth; in hostapd_wpa_auth_conf()
60 wconf->eapol_version = conf->eapol_version; in hostapd_wpa_auth_conf()
65 wconf->wmm_enabled = conf->wmm_enabled; in hostapd_wpa_auth_conf()
66 wconf->wmm_uapsd = conf->wmm_uapsd; in hostapd_wpa_auth_conf()
67 wconf->disable_pmksa_caching = conf->disable_pmksa_caching; in hostapd_wpa_auth_conf()
69 wconf->ocv = conf->ocv; in hostapd_wpa_auth_conf()
71 wconf->okc = conf->okc; in hostapd_wpa_auth_conf()
72 wconf->ieee80211w = conf->ieee80211w; in hostapd_wpa_auth_conf()
73 wconf->beacon_prot = conf->beacon_prot; in hostapd_wpa_auth_conf()
74 wconf->group_mgmt_cipher = conf->group_mgmt_cipher; in hostapd_wpa_auth_conf()
75 wconf->sae_require_mfp = conf->sae_require_mfp; in hostapd_wpa_auth_conf()
76 wconf->ssid_protection = conf->ssid_protection; in hostapd_wpa_auth_conf()
77 wconf->ssid_len = conf->ssid.ssid_len; in hostapd_wpa_auth_conf()
80 os_memcpy(wconf->ssid, conf->ssid.ssid, wconf->ssid_len); in hostapd_wpa_auth_conf()
82 os_memcpy(wconf->mobility_domain, conf->mobility_domain, in hostapd_wpa_auth_conf()
84 if (conf->nas_identifier && in hostapd_wpa_auth_conf()
85 os_strlen(conf->nas_identifier) <= FT_R0KH_ID_MAX_LEN) { in hostapd_wpa_auth_conf()
86 wconf->r0_key_holder_len = os_strlen(conf->nas_identifier); in hostapd_wpa_auth_conf()
87 os_memcpy(wconf->r0_key_holder, conf->nas_identifier, in hostapd_wpa_auth_conf()
90 os_memcpy(wconf->r1_key_holder, conf->r1_key_holder, FT_R1KH_ID_LEN); in hostapd_wpa_auth_conf()
91 wconf->r0_key_lifetime = conf->r0_key_lifetime; in hostapd_wpa_auth_conf()
92 wconf->r1_max_key_lifetime = conf->r1_max_key_lifetime; in hostapd_wpa_auth_conf()
93 wconf->reassociation_deadline = conf->reassociation_deadline; in hostapd_wpa_auth_conf()
94 wconf->rkh_pos_timeout = conf->rkh_pos_timeout; in hostapd_wpa_auth_conf()
95 wconf->rkh_neg_timeout = conf->rkh_neg_timeout; in hostapd_wpa_auth_conf()
96 wconf->rkh_pull_timeout = conf->rkh_pull_timeout; in hostapd_wpa_auth_conf()
97 wconf->rkh_pull_retries = conf->rkh_pull_retries; in hostapd_wpa_auth_conf()
98 wconf->r0kh_list = &conf->r0kh_list; in hostapd_wpa_auth_conf()
99 wconf->r1kh_list = &conf->r1kh_list; in hostapd_wpa_auth_conf()
100 wconf->pmk_r1_push = conf->pmk_r1_push; in hostapd_wpa_auth_conf()
101 wconf->ft_over_ds = conf->ft_over_ds; in hostapd_wpa_auth_conf()
102 wconf->ft_psk_generate_local = conf->ft_psk_generate_local; in hostapd_wpa_auth_conf()
105 wconf->disable_gtk = conf->disable_dgaf; in hostapd_wpa_auth_conf()
106 if (conf->osen) { in hostapd_wpa_auth_conf()
122 if (conf->own_ie_override && in hostapd_wpa_auth_conf()
123 wpabuf_len(conf->own_ie_override) <= MAX_OWN_IE_OVERRIDE) { in hostapd_wpa_auth_conf()
124 wconf->own_ie_override_len = wpabuf_len(conf->own_ie_override); in hostapd_wpa_auth_conf()
126 wpabuf_head(conf->own_ie_override), in hostapd_wpa_auth_conf()
129 if (conf->rsne_override_eapol && in hostapd_wpa_auth_conf()
130 wpabuf_len(conf->rsne_override_eapol) <= MAX_OWN_IE_OVERRIDE) { in hostapd_wpa_auth_conf()
133 wpabuf_len(conf->rsne_override_eapol); in hostapd_wpa_auth_conf()
135 wpabuf_head(conf->rsne_override_eapol), in hostapd_wpa_auth_conf()
138 if (conf->rsnxe_override_eapol && in hostapd_wpa_auth_conf()
139 wpabuf_len(conf->rsnxe_override_eapol) <= MAX_OWN_IE_OVERRIDE) { in hostapd_wpa_auth_conf()
142 wpabuf_len(conf->rsnxe_override_eapol); in hostapd_wpa_auth_conf()
144 wpabuf_head(conf->rsnxe_override_eapol), in hostapd_wpa_auth_conf()
147 if (conf->rsne_override_ft && in hostapd_wpa_auth_conf()
148 wpabuf_len(conf->rsne_override_ft) <= MAX_OWN_IE_OVERRIDE) { in hostapd_wpa_auth_conf()
151 wpabuf_len(conf->rsne_override_ft); in hostapd_wpa_auth_conf()
153 wpabuf_head(conf->rsne_override_ft), in hostapd_wpa_auth_conf()
156 if (conf->rsnxe_override_ft && in hostapd_wpa_auth_conf()
157 wpabuf_len(conf->rsnxe_override_ft) <= MAX_OWN_IE_OVERRIDE) { in hostapd_wpa_auth_conf()
160 wpabuf_len(conf->rsnxe_override_ft); in hostapd_wpa_auth_conf()
162 wpabuf_head(conf->rsnxe_override_ft), in hostapd_wpa_auth_conf()
165 if (conf->gtk_rsc_override && in hostapd_wpa_auth_conf()
166 wpabuf_len(conf->gtk_rsc_override) > 0 && in hostapd_wpa_auth_conf()
167 wpabuf_len(conf->gtk_rsc_override) <= WPA_KEY_RSC_LEN) { in hostapd_wpa_auth_conf()
169 wpabuf_head(conf->gtk_rsc_override), in hostapd_wpa_auth_conf()
170 wpabuf_len(conf->gtk_rsc_override)); in hostapd_wpa_auth_conf()
173 if (conf->igtk_rsc_override && in hostapd_wpa_auth_conf()
174 wpabuf_len(conf->igtk_rsc_override) > 0 && in hostapd_wpa_auth_conf()
175 wpabuf_len(conf->igtk_rsc_override) <= WPA_KEY_RSC_LEN) { in hostapd_wpa_auth_conf()
177 wpabuf_head(conf->igtk_rsc_override), in hostapd_wpa_auth_conf()
178 wpabuf_len(conf->igtk_rsc_override)); in hostapd_wpa_auth_conf()
181 wconf->ft_rsnxe_used = conf->ft_rsnxe_used; in hostapd_wpa_auth_conf()
182 wconf->oci_freq_override_eapol_m3 = conf->oci_freq_override_eapol_m3; in hostapd_wpa_auth_conf()
183 wconf->oci_freq_override_eapol_g1 = conf->oci_freq_override_eapol_g1; in hostapd_wpa_auth_conf()
184 wconf->oci_freq_override_ft_assoc = conf->oci_freq_override_ft_assoc; in hostapd_wpa_auth_conf()
186 conf->oci_freq_override_fils_assoc; in hostapd_wpa_auth_conf()
188 if (conf->eapol_m1_elements) in hostapd_wpa_auth_conf()
189 wconf->eapol_m1_elements = wpabuf_dup(conf->eapol_m1_elements); in hostapd_wpa_auth_conf()
190 if (conf->eapol_m3_elements) in hostapd_wpa_auth_conf()
191 wconf->eapol_m3_elements = wpabuf_dup(conf->eapol_m3_elements); in hostapd_wpa_auth_conf()
192 wconf->eapol_m3_no_encrypt = conf->eapol_m3_no_encrypt; in hostapd_wpa_auth_conf()
195 os_memcpy(wconf->ip_addr_go, conf->ip_addr_go, 4); in hostapd_wpa_auth_conf()
196 os_memcpy(wconf->ip_addr_mask, conf->ip_addr_mask, 4); in hostapd_wpa_auth_conf()
197 os_memcpy(wconf->ip_addr_start, conf->ip_addr_start, 4); in hostapd_wpa_auth_conf()
198 os_memcpy(wconf->ip_addr_end, conf->ip_addr_end, 4); in hostapd_wpa_auth_conf()
201 wconf->fils_cache_id_set = conf->fils_cache_id_set; in hostapd_wpa_auth_conf()
202 os_memcpy(wconf->fils_cache_id, conf->fils_cache_id, in hostapd_wpa_auth_conf()
205 wconf->sae_pwe = conf->sae_pwe; in hostapd_wpa_auth_conf()
206 sae_pw_id = hostapd_sae_pw_id_in_use(conf); in hostapd_wpa_auth_conf()
212 wconf->sae_pk = hostapd_sae_pk_in_use(conf); in hostapd_wpa_auth_conf()
215 wconf->owe_ptk_workaround = conf->owe_ptk_workaround; in hostapd_wpa_auth_conf()
217 wconf->transition_disable = conf->transition_disable; in hostapd_wpa_auth_conf()
219 wconf->dpp_pfs = conf->dpp_pfs; in hostapd_wpa_auth_conf()
223 wconf->force_kdk_derivation = conf->force_kdk_derivation; in hostapd_wpa_auth_conf()
227 wconf->radius_psk = conf->wpa_psk_radius == PSK_RADIUS_DURING_4WAY_HS; in hostapd_wpa_auth_conf()
229 conf->bss_max_idle && conf->ap_max_inactivity && in hostapd_wpa_auth_conf()
230 conf->no_disconnect_on_group_keyerror; in hostapd_wpa_auth_conf()
374 if ((hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_OWE) && in hostapd_wpa_auth_get_psk()
380 if ((hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_OWE) && sta) { in hostapd_wpa_auth_get_psk()
392 psk = hostapd_get_psk(hapd->conf, addr, p2p_dev_addr, prev_psk, in hostapd_wpa_auth_get_psk()
408 hapd->conf->ssid.ssid, in hostapd_wpa_auth_get_psk()
409 hapd->conf->ssid.ssid_len, 4096, in hostapd_wpa_auth_get_psk()
462 const char *ifname = hapd->conf->iface; in hostapd_wpa_auth_set_key()
465 ifname = hostapd_get_vlan_id_ifname(hapd->conf->vlan, vlan_id); in hostapd_wpa_auth_set_key()
470 ifname = hapd->conf->iface; in hostapd_wpa_auth_set_key()
527 if (hapd->conf->mld_ap && idx) in hostapd_wpa_auth_get_seqnum()
530 return hostapd_get_seqnum(hapd->conf->iface, hapd, addr, idx, link_id, in hostapd_wpa_auth_get_seqnum()
545 link_id = hapd->conf->mld_ap ? hapd->mld_link_id : -1; in hostapd_wpa_auth_send_eapol()
688 idata->src_hapd->conf->iface, in hostapd_wpa_auth_ft_iter()
689 MAC2STR(hapd->own_addr), hapd->conf->iface); in hostapd_wpa_auth_ft_iter()
825 hapd->conf->iface, __func__, in hostapd_oui_deliver_later()
860 if (!wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) || in hostapd_wpa_auth_oui_iter()
861 hapd->conf->ssid.ssid_len != in hostapd_wpa_auth_oui_iter()
862 src_hapd->conf->ssid.ssid_len || in hostapd_wpa_auth_oui_iter()
863 os_memcmp(hapd->conf->ssid.ssid, in hostapd_wpa_auth_oui_iter()
864 src_hapd->conf->ssid.ssid, in hostapd_wpa_auth_oui_iter()
865 hapd->conf->ssid.ssid_len) != 0 || in hostapd_wpa_auth_oui_iter()
866 os_memcmp(hapd->conf->mobility_domain, in hostapd_wpa_auth_oui_iter()
867 src_hapd->conf->mobility_domain, in hostapd_wpa_auth_oui_iter()
887 src_hapd->conf->iface, hapd->conf->iface, in hostapd_wpa_auth_oui_iter()
927 hapd->conf->iface, MAC2STR(dst), oui_suffix, in hostapd_wpa_auth_send_oui()
1005 if (!hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in hostapd_wpa_auth_update_vlan()
1142 !(hapd->conf->mesh & MESH_ENABLED) && !(sta->added_unassoc)) { in hostapd_wpa_auth_add_sta_ft()
1171 !hostapd_vlan_valid(hapd->conf->vlan, vlan)) { in hostapd_wpa_auth_set_vlan()
1549 if (!hapd->conf->mld_ap || !hapd->iface || !hapd->iface->interfaces) in hostapd_wpa_auth_get_ml_key_info()
1665 hostapd_wpa_auth_conf(hapd->conf, hapd->iconf, &_conf); in hostapd_setup_wpa()
1676 (hapd->conf->wpa_deny_ptk0_rekey == PTK0_REKEY_ALLOW_NEVER || in hostapd_setup_wpa()
1677 (hapd->conf->wpa_deny_ptk0_rekey == PTK0_REKEY_ALLOW_LOCAL_OK && in hostapd_setup_wpa()
1712 if (hapd->conf->mld_ap) { in hostapd_setup_wpa()
1736 "for interface %s", hapd->conf->iface); in hostapd_setup_wpa()
1762 wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt)) { in hostapd_setup_wpa()
1765 ft_iface = hapd->conf->bridge[0] ? hapd->conf->bridge : in hostapd_setup_wpa()
1766 hapd->conf->iface; in hostapd_setup_wpa()
1791 hostapd_wpa_auth_conf(hapd->conf, hapd->iconf, &wpa_auth_conf); in hostapd_reconfig_wpa()
1810 hapd->conf->iface); in hostapd_deinit_wpa()
1817 hapd->conf->iface); in hostapd_deinit_wpa()