Lines Matching refs:conf
324 if (!addr && idx < 4 && wpa_auth->conf.gtk_rsc_override_set) { in wpa_auth_get_seqnum()
329 WPA_GET_LE64(wpa_auth->conf.gtk_rsc_override)); in wpa_auth_get_seqnum()
330 os_memcpy(seq, wpa_auth->conf.gtk_rsc_override, in wpa_auth_get_seqnum()
334 wpa_auth->conf.igtk_rsc_override_set) { in wpa_auth_get_seqnum()
339 WPA_GET_LE64(wpa_auth->conf.igtk_rsc_override)); in wpa_auth_get_seqnum()
340 os_memcpy(seq, wpa_auth->conf.igtk_rsc_override, in wpa_auth_get_seqnum()
486 if (wpa_auth->conf.wpa_gmk_rekey) { in wpa_rekey_gmk()
487 eloop_register_timeout(wpa_auth->conf.wpa_gmk_rekey, 0, in wpa_rekey_gmk()
593 if (wpa_auth->conf.wpa_group_rekey) { in wpa_rekey_gtk()
594 eloop_register_timeout(wpa_auth->conf.wpa_group_rekey, in wpa_rekey_gtk()
614 if (sm && sm->wpa_auth->conf.wpa_ptk_rekey) { in wpa_auth_set_ptk_rekey_timer()
618 sm->wpa_auth->conf.wpa_ptk_rekey); in wpa_auth_set_ptk_rekey_timer()
620 eloop_register_timeout(sm->wpa_auth->conf.wpa_ptk_rekey, 0, in wpa_auth_set_ptk_rekey_timer()
689 group->GTK_len = wpa_cipher_key_len(wpa_auth->conf.wpa_group); in wpa_group_init()
732 struct wpa_auth_config *conf, argument
743 os_memcpy(&wpa_auth->conf, conf, sizeof(*conf));
746 if (conf->mld_addr) {
748 wpa_auth->link_id = conf->link_id;
749 wpa_auth->primary_auth = !conf->first_link_auth;
750 os_memcpy(wpa_auth->mld_addr, conf->mld_addr, ETH_ALEN);
792 if (wpa_auth->conf.wpa_gmk_rekey) {
793 eloop_register_timeout(wpa_auth->conf.wpa_gmk_rekey, 0,
801 if ((!wpa_auth->is_ml || !conf->first_link_auth) &&
802 wpa_auth->conf.wpa_group_rekey) {
804 if (wpa_auth->conf.wpa_group_rekey) {
806 eloop_register_timeout(wpa_auth->conf.wpa_group_rekey, 0,
811 if (WPA_GET_BE32(conf->ip_addr_start)) {
812 int count = WPA_GET_BE32(conf->ip_addr_end) -
813 WPA_GET_BE32(conf->ip_addr_start) + 1;
821 if (conf->tx_bss_auth && conf->beacon_prot) {
822 conf->tx_bss_auth->non_tx_beacon_prot = true;
823 if (!conf->tx_bss_auth->conf.beacon_prot)
824 conf->tx_bss_auth->conf.beacon_prot = true;
825 if (!conf->tx_bss_auth->conf.group_mgmt_cipher)
826 conf->tx_bss_auth->conf.group_mgmt_cipher =
827 conf->group_mgmt_cipher;
849 static void wpa_auth_free_conf(struct wpa_auth_config *conf) argument
852 wpabuf_free(conf->eapol_m1_elements);
853 conf->eapol_m1_elements = NULL;
854 wpabuf_free(conf->eapol_m3_elements);
855 conf->eapol_m3_elements = NULL;
896 wpa_auth_free_conf(&wpa_auth->conf);
907 struct wpa_auth_config *conf) argument
914 wpa_auth_free_conf(&wpa_auth->conf);
915 os_memcpy(&wpa_auth->conf, conf, sizeof(*conf));
926 group->GTK_len = wpa_cipher_key_len(wpa_auth->conf.wpa_group);
966 if (!wpa_auth || !wpa_auth->conf.wpa || !sm)
1073 if (wpa_auth->conf.wpa_strict_rekey && sm->has_GTK) {
1114 if (!sm->use_ext_key_id && sm->wpa_auth->conf.wpa_deny_ptk0_rekey) {
1239 os_memcmp(wpa_auth->conf.mobility_domain, mdie->mobility_domain,
1270 if (group && wpa_auth->conf.wpa_group != WPA_CIPHER_TKIP) {
1550 if (!wpa_auth || !wpa_auth->conf.wpa || !sm)
1972 struct wpa_auth_config *conf = &wpa_auth->conf; local
2028 hdr->version = conf->eapol_version;
2044 alg = pairwise ? sm->pairwise : conf->wpa_group;
2167 conf->corrupt_gtk_rekey_mic_probability > 0.0 &&
2168 drand48() < conf->corrupt_gtk_rekey_mic_probability) {
2213 if (wpa_auth->conf.delay_eapol_tx &&
2214 ctr != wpa_auth->conf.wpa_pairwise_update_count) {
2215 wpa_msg(sm->wpa_auth->conf.msg_ctx, MSG_INFO,
2226 if (ctr == 1 && wpa_auth->conf.tx_status) {
2236 if (wpa_auth->conf.wpa_disable_eapol_key_retries &&
2366 sm->wpa_auth->conf.wpa_deny_ptk0_rekey) {
2712 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
2722 if (sm->TimeoutCtr > sm->wpa_auth->conf.wpa_pairwise_update_count) {
2733 if (conf->eapol_m1_elements)
2734 buf_len += wpabuf_len(conf->eapol_m1_elements);
2845 if (conf->eapol_m1_elements) {
2846 os_memcpy(buf + kde_len, wpabuf_head(conf->eapol_m1_elements),
2847 wpabuf_len(conf->eapol_m1_elements));
2848 kde_len += wpabuf_len(conf->eapol_m1_elements);
2872 if (sm->wpa_auth->conf.force_kdk_derivation ||
2873 (!no_kdk && sm->wpa_auth->conf.secure_ltf &&
2902 if (!no_kdk && sm->wpa_auth->conf.secure_ltf &&
2938 if (!no_kdk && sm->wpa_auth->conf.secure_ltf &&
2964 if (sm->wpa_auth->conf.force_kdk_derivation ||
2965 (sm->wpa_auth->conf.secure_ltf &&
2981 if (sm->wpa_auth->conf.secure_ltf &&
2998 struct wpa_auth_config *conf = &wpa_auth->conf; local
3002 conf->ssid, conf->ssid_len,
3003 conf->mobility_domain,
3004 conf->r0_key_holder,
3005 conf->r0_key_holder_len,
3013 res = wpa_derive_pmk_r1_name(pmk_r0_name, conf->r1_key_holder,
3374 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
3377 if (conf->transition_disable)
3408 if (conf->disable_gtk || sm->wpa_key_mgmt == WPA_KEY_MGMT_OSEN) {
3431 if (conf->transition_disable) {
3434 &conf->transition_disable, 1, NULL, 0);
3452 if (conf->oci_freq_override_fils_assoc) {
3456 conf->oci_freq_override_fils_assoc);
3457 ci.frequency = conf->oci_freq_override_fils_assoc;
3498 if (sm->wpa_auth->conf.secure_ltf &&
3643 int owe_ptk_workaround = !!wpa_auth->conf.owe_ptk_workaround;
3658 derive_kdk = sm->wpa_auth->conf.secure_ltf &&
3732 if (!sm->wpa_auth->conf.force_kdk_derivation &&
3754 wpa_auth->conf.radius_psk && wpa_auth->cb->request_radius_psk &&
3902 if (wpa_auth->conf.msg_ctx)
3903 wpa_msg(wpa_auth->conf.msg_ctx, MSG_INFO,
3921 if ((wpa_auth->conf.rsn_override_key_mgmt ||
3922 wpa_auth->conf.rsn_override_key_mgmt_2) &&
3955 u32 start = WPA_GET_BE32(wpa_auth->conf.ip_addr_start);
3976 wpa_auth->conf.dpp_pfs != 2 &&
4046 len += wpa_cipher_key_len(wpa_auth->conf.group_mgmt_cipher);
4049 if (wpa_auth->conf.tx_bss_auth)
4050 wpa_auth = wpa_auth->conf.tx_bss_auth;
4051 if (sm->mgmt_frame_prot && sm->wpa_auth->conf.beacon_prot) {
4053 len += wpa_cipher_key_len(wpa_auth->conf.group_mgmt_cipher);
4067 struct wpa_auth_config *conf = &wpa_auth->conf; local
4068 size_t len = wpa_cipher_key_len(conf->group_mgmt_cipher);
4086 if (conf->disable_gtk || sm->wpa_key_mgmt == WPA_KEY_MGMT_OSEN) {
4099 if (wpa_auth->conf.tx_bss_auth) {
4100 wpa_auth = wpa_auth->conf.tx_bss_auth;
4101 conf = &wpa_auth->conf;
4102 len = wpa_cipher_key_len(conf->group_mgmt_cipher);
4106 if (!sm->wpa_auth->conf.beacon_prot)
4233 info->igtk_len = wpa_cipher_key_len(a->conf.group_mgmt_cipher);
4243 if (a->conf.tx_bss_auth) {
4244 a = a->conf.tx_bss_auth;
4293 if (wpa_auth->conf.tx_bss_auth)
4294 wpa_auth = wpa_auth->conf.tx_bss_auth;
4299 kde_len += wpa_cipher_key_len(wpa_auth->conf.group_mgmt_cipher);
4301 if (!wpa_auth->conf.beacon_prot)
4307 kde_len += wpa_cipher_key_len(wpa_auth->conf.group_mgmt_cipher);
4331 ml_key_info.beacon_prot = sm->wpa_auth->conf.beacon_prot;
4415 if (!sm->wpa_auth->conf.beacon_prot) {
4667 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
4678 if (conf->wpa_disable_eapol_key_retries && sm->TimeoutCtr > 1) {
4682 if (sm->TimeoutCtr > conf->wpa_pairwise_update_count) {
4696 if (sm->wpa == WPA_VERSION_WPA && (conf->wpa & WPA_PROTO_RSN) &&
4706 if ((conf->rsn_override_key_mgmt || conf->rsn_override_key_mgmt_2) &&
4740 if (conf->rsne_override_eapol_set) {
4743 conf->rsne_override_eapol,
4744 conf->rsne_override_eapol_len);
4749 if (conf->rsnxe_override_eapol_set) {
4752 conf->rsnxe_override_eapol,
4753 conf->rsnxe_override_eapol_len);
4775 if (sm->wpa_auth->conf.secure_ltf &&
4793 if (conf->disable_gtk ||
4847 if (conf->transition_disable)
4858 kde_len += 2 + conf->ssid_len;
4861 if (conf->eapol_m3_elements)
4862 kde_len += wpabuf_len(conf->eapol_m3_elements);
4903 if (ocv_oci_add(sm, &pos, conf->oci_freq_override_eapol_m3) < 0)
4916 res = wpa_write_ftie(conf, sm->wpa_key_mgmt,
4918 conf->r0_key_holder,
4919 conf->r0_key_holder_len,
4935 WPA_PUT_LE32(pos, conf->reassociation_deadline);
4942 WPA_PUT_LE32(pos, conf->r0_key_lifetime);
4950 os_memcpy(addr + 4, conf->ip_addr_mask, 4);
4951 os_memcpy(addr + 8, conf->ip_addr_go, 4);
4957 if (conf->transition_disable)
4959 &conf->transition_disable, 1, NULL, 0);
4967 if (conf->dpp_pfs == 0)
4969 else if (conf->dpp_pfs == 1)
4985 *pos++ = conf->ssid_len;
4986 os_memcpy(pos, conf->ssid, conf->ssid_len);
4987 pos += conf->ssid_len;
4991 if (conf->eapol_m3_elements) {
4992 os_memcpy(pos, wpabuf_head(conf->eapol_m3_elements),
4993 wpabuf_len(conf->eapol_m3_elements));
4994 pos += wpabuf_len(conf->eapol_m3_elements);
4997 if (conf->eapol_m3_no_encrypt)
5098 if (sm->wpa_auth->conf.secure_ltf &&
5147 wpa_msg(sm->wpa_auth->conf.msg_ctx, MSG_INFO, "EAPOL-4WAY-HS-COMPLETED "
5161 struct wpa_auth_config *conf = &wpa_auth->conf; local
5231 wpa_auth->conf.radius_psk) {
5247 else if (sm->TimeoutCtr > conf->wpa_pairwise_update_count) {
5252 conf->wpa_pairwise_update_count);
5278 conf->wpa_pairwise_update_count ||
5279 (conf->wpa_disable_eapol_key_retries &&
5285 conf->wpa_pairwise_update_count);
5318 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
5328 if (conf->wpa_disable_eapol_key_retries && sm->GTimeoutCtr > 1) {
5332 if (sm->GTimeoutCtr > conf->wpa_group_update_count) {
5349 if (conf->disable_gtk || sm->wpa_key_mgmt == WPA_KEY_MGMT_OSEN) {
5373 conf->oci_freq_override_eapol_g1) < 0) {
5469 if (wpa_auth->conf.msg_ctx)
5470 wpa_msg(wpa_auth->conf.msg_ctx, MSG_INFO,
5496 if (sm->wpa_auth->conf.no_disconnect_on_group_keyerror &&
5501 sm->wpa_auth->conf.wpa_group_update_count);
5509 sm->wpa_auth->conf.wpa_group_update_count);
5529 sm->wpa_auth->conf.wpa_group_update_count ||
5530 (sm->wpa_auth->conf.wpa_disable_eapol_key_retries &&
5549 struct wpa_auth_config *conf = &wpa_auth->conf; local
5562 if (conf->ieee80211w != NO_MGMT_FRAME_PROTECTION) {
5563 len = wpa_cipher_key_len(conf->group_mgmt_cipher);
5575 conf->ieee80211w == NO_MGMT_FRAME_PROTECTION)
5577 if (!conf->beacon_prot)
5580 if (wpa_auth->conf.tx_bss_auth) {
5581 group = wpa_auth->conf.tx_bss_auth->group;
5587 len = wpa_cipher_key_len(conf->group_mgmt_cipher);
5679 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
5698 if (conf->disable_gtk || sm->wpa_key_mgmt == WPA_KEY_MGMT_OSEN) {
5719 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
5722 size_t len = wpa_cipher_key_len(sm->wpa_auth->conf.group_mgmt_cipher);
5737 if (conf->disable_gtk || sm->wpa_key_mgmt == WPA_KEY_MGMT_OSEN) {
5761 size_t len = wpa_cipher_key_len(wpa_auth->conf.group_mgmt_cipher);
5854 struct wpa_auth_config *conf = &wpa_auth->conf; local
5858 wpa_cipher_to_alg(conf->wpa_group),
5864 if (conf->ieee80211w != NO_MGMT_FRAME_PROTECTION) {
5868 alg = wpa_cipher_to_alg(conf->group_mgmt_cipher);
5869 len = wpa_cipher_key_len(conf->group_mgmt_cipher);
5878 if (ret || !conf->beacon_prot)
5880 if (wpa_auth->conf.tx_bss_auth) {
5881 wpa_auth = wpa_auth->conf.tx_bss_auth;
6091 if (!wpa_auth->conf.tx_bss_auth) {
6114 struct wpa_auth_config *conf; local
6125 conf = &wpa_auth->conf;
6133 wpa_bool_txt(conf->wpa & WPA_PROTO_RSN),
6134 wpa_bool_txt(conf->rsn_preauth));
6169 !!conf->wpa_strict_rekey,
6170 conf->wpa_group_update_count,
6171 conf->wpa_pairwise_update_count,
6172 wpa_cipher_key_len(conf->wpa_group) * 8,
6367 sm->wpa_auth->conf.disable_pmksa_caching)
6422 if (wpa_auth->conf.disable_pmksa_caching)
6449 if (!wpa_auth || wpa_auth->conf.disable_pmksa_caching)
6893 if (a == data->auth || !a->conf.fils_cache_id_set ||
6894 os_memcmp(a->conf.fils_cache_id, data->cache_id,
6908 if (!wpa_auth->conf.fils_cache_id_set)
6911 idata.cache_id = wpa_auth->conf.fils_cache_id;
6925 struct wpa_auth_config *conf = &wpa_auth->conf; local
6927 return wpa_write_ftie(conf, sm->wpa_key_mgmt, sm->xxkey_len,
6928 conf->r0_key_holder, conf->r0_key_holder_len,
7010 wpa_auth->conf.transition_disable = val;
7045 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
7061 (sm->wpa_auth->conf.wpa & WPA_PROTO_RSN) &&
7159 if (ocv_oci_add(sm, &pos, conf->oci_freq_override_eapol_m3) < 0) {
7174 res = wpa_write_ftie(conf, sm->wpa_key_mgmt,
7176 conf->r0_key_holder,
7177 conf->r0_key_holder_len,
7194 WPA_PUT_LE32(pos, conf->reassociation_deadline);
7201 WPA_PUT_LE32(pos, conf->r0_key_lifetime);
7223 struct wpa_auth_config *conf = &sm->wpa_auth->conf; local
7259 conf->oci_freq_override_eapol_g1) < 0) {
7312 wpa_auth->conf.ft_rsnxe_used = val;
7324 wpa_auth->conf.oci_freq_override_eapol_m3 = freq;
7327 wpa_auth->conf.oci_freq_override_eapol_g1 = freq;
7330 wpa_auth->conf.oci_freq_override_ft_assoc = freq;
7333 wpa_auth->conf.oci_freq_override_fils_assoc = freq;