Home
last modified time | relevance | path

Searched refs:rsnxe (Results 1 – 21 of 21) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
Dwpa_ft.c197 u8 rsnxe[10]; in wpa_ft_gen_req_ies() local
404 res = wpa_gen_rsnxe(sm, rsnxe, sizeof(rsnxe)); in wpa_ft_gen_req_ies()
433 ric_ies_len, rsnxe_len ? rsnxe : NULL, rsnxe_len, in wpa_ft_gen_req_ies()
1103 if (parse.rsnxe) in wpa_ft_validate_reassoc_resp()
1125 parse.rsnxe ? parse.rsnxe - 2 : NULL, in wpa_ft_validate_reassoc_resp()
1126 parse.rsnxe ? parse.rsnxe_len + 2 : 0, in wpa_ft_validate_reassoc_resp()
1174 if ((sm->ap_rsnxe && !parse.rsnxe && own_rsnxe_used) || in wpa_ft_validate_reassoc_resp()
1175 (!sm->ap_rsnxe && parse.rsnxe) || in wpa_ft_validate_reassoc_resp()
1176 (sm->ap_rsnxe && parse.rsnxe && in wpa_ft_validate_reassoc_resp()
1178 os_memcmp(sm->ap_rsnxe, parse.rsnxe - 2, in wpa_ft_validate_reassoc_resp()
[all …]
Dwpa_ie.c354 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len) in wpa_gen_rsnxe() argument
356 u8 *pos = rsnxe; in wpa_gen_rsnxe()
390 return pos - rsnxe; in wpa_gen_rsnxe()
Dwpa_ie.h15 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len);
Dwpa.c1580 ((sm->ap_rsnxe && !ie->rsnxe) || in wpa_supplicant_validate_ie()
1581 (!sm->ap_rsnxe && ie->rsnxe) || in wpa_supplicant_validate_ie()
1582 (sm->ap_rsnxe && ie->rsnxe && in wpa_supplicant_validate_ie()
1584 os_memcmp(sm->ap_rsnxe, ie->rsnxe, sm->ap_rsnxe_len) != 0)))) { in wpa_supplicant_validate_ie()
1590 ie->rsnxe, ie->rsnxe_len); in wpa_supplicant_validate_ie()
3594 int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe, in wpa_sm_set_assoc_rsnxe_default() argument
3602 res = wpa_gen_rsnxe(sm, rsnxe, *rsnxe_len); in wpa_sm_set_assoc_rsnxe_default()
3607 wpa_hexdump(MSG_DEBUG, "RSN: Set own RSNXE default", rsnxe, *rsnxe_len); in wpa_sm_set_assoc_rsnxe_default()
3618 sm->assoc_rsnxe = os_memdup(rsnxe, *rsnxe_len); in wpa_sm_set_assoc_rsnxe_default()
Dwpa.h160 int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dwpa_auth_ie.c589 const u8 *rsnxe, size_t rsnxe_len, in wpa_validate_wpa_ie() argument
1022 if (rsnxe && rsnxe_len) { in wpa_validate_wpa_ie()
1023 if (!sm->rsnxe || sm->rsnxe_len < rsnxe_len) { in wpa_validate_wpa_ie()
1024 os_free(sm->rsnxe); in wpa_validate_wpa_ie()
1025 sm->rsnxe = os_malloc(rsnxe_len); in wpa_validate_wpa_ie()
1026 if (!sm->rsnxe) in wpa_validate_wpa_ie()
1029 os_memcpy(sm->rsnxe, rsnxe, rsnxe_len); in wpa_validate_wpa_ie()
1032 os_free(sm->rsnxe); in wpa_validate_wpa_ie()
1033 sm->rsnxe = NULL; in wpa_validate_wpa_ie()
Dwpa_auth_i.h108 u8 *rsnxe; member
Dwpa_auth_ft.c2513 u8 rsnxe_buf[10], *rsnxe = rsnxe_buf; in wpa_sm_write_assoc_resp_ies() local
2748 res = wpa_write_rsnxe(&sm->wpa_auth->conf, rsnxe, in wpa_sm_write_assoc_resp_ies()
2759 rsnxe = sm->wpa_auth->conf.rsnxe_override_ft; in wpa_sm_write_assoc_resp_ies()
2778 rsnxe_len ? rsnxe : NULL, rsnxe_len, in wpa_sm_write_assoc_resp_ies()
3201 ieee802_11_rsnx_capab(sm->rsnxe, WLAN_RSNX_CAPAB_SECURE_LTF))) in wpa_ft_process_auth_req()
3457 if (parse.rsnxe) in wpa_ft_validate_reassoc()
3478 parse.rsnxe ? parse.rsnxe - 2 : NULL, in wpa_ft_validate_reassoc()
3479 parse.rsnxe ? parse.rsnxe_len + 2 : 0, in wpa_ft_validate_reassoc()
3499 parse.rsnxe ? parse.rsnxe - 2 : NULL, in wpa_ft_validate_reassoc()
3500 parse.rsnxe ? parse.rsnxe_len + 2 : 0); in wpa_ft_validate_reassoc()
[all …]
Ddrv_callbacks.c360 elems.rsnxe ? elems.rsnxe - 2 : NULL, in hostapd_notif_assoc()
361 elems.rsnxe ? elems.rsnxe_len + 2 : 0, in hostapd_notif_assoc()
462 ieee802_11_rsnx_capab_len(elems.rsnxe, elems.rsnxe_len, in hostapd_notif_assoc()
541 !elems.rsnxe); in hostapd_notif_assoc()
Dwpa_auth.c762 os_free(sm->rsnxe); in wpa_free_sta_sm()
2311 ieee802_11_rsnx_capab(sm->rsnxe, WLAN_RSNX_CAPAB_SECURE_LTF))) in wpa_derive_ptk()
2365 ieee802_11_rsnx_capab(sm->rsnxe, WLAN_RSNX_CAPAB_SECURE_LTF))) in fils_auth_pmk_to_ptk()
3082 if ((!sm->rsnxe && kde.rsnxe) || in SM_STATE()
3083 (sm->rsnxe && !kde.rsnxe) || in SM_STATE()
3084 (sm->rsnxe && kde.rsnxe && in SM_STATE()
3086 os_memcmp(sm->rsnxe, kde.rsnxe, sm->rsnxe_len) != 0))) { in SM_STATE()
3090 sm->rsnxe, sm->rsnxe_len); in SM_STATE()
3092 kde.rsnxe, kde.rsnxe_len); in SM_STATE()
Dwpa_auth.h371 const u8 *rsnxe, size_t rsnxe_len,
Dieee802_11.c1898 elems.rsnxe ? elems.rsnxe - 2 : NULL, in handle_auth_fils()
1899 elems.rsnxe ? elems.rsnxe_len + 2 : 0, in handle_auth_fils()
3156 ieee802_11_rsnx_capab_len(elems.rsnxe, elems.rsnxe_len, in handle_auth_pasn_1()
4635 elems.rsnxe ? elems.rsnxe - 2 : NULL, in check_assoc_ies()
4636 elems.rsnxe ? elems.rsnxe_len + 2 : 0, in check_assoc_ies()
4698 ieee802_11_rsnx_capab_len(elems.rsnxe, elems.rsnxe_len, in check_assoc_ies()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dieee802_11_common.c428 elems->rsnxe = pos; in ieee802_11_parse_elems()
2440 bool ieee802_11_rsnx_capab_len(const u8 *rsnxe, size_t rsnxe_len, in ieee802_11_rsnx_capab_len() argument
2447 if (!rsnxe || rsnxe_len == 0) in ieee802_11_rsnx_capab_len()
2449 end = rsnxe + rsnxe_len; in ieee802_11_rsnx_capab_len()
2450 flen = (rsnxe[0] & 0x0f) + 1; in ieee802_11_rsnx_capab_len()
2451 if (rsnxe + flen > end) in ieee802_11_rsnx_capab_len()
2456 capabs |= rsnxe[i] << (8 * i); in ieee802_11_rsnx_capab_len()
2462 bool ieee802_11_rsnx_capab(const u8 *rsnxe, unsigned int capab) in ieee802_11_rsnx_capab() argument
2464 return ieee802_11_rsnx_capab_len(rsnxe ? rsnxe + 2 : NULL, in ieee802_11_rsnx_capab()
2465 rsnxe ? rsnxe[1] : 0, capab); in ieee802_11_rsnx_capab()
Dieee802_11_common.h59 const u8 *rsnxe; member
274 bool ieee802_11_rsnx_capab_len(const u8 *rsnxe, size_t rsnxe_len,
276 bool ieee802_11_rsnx_capab(const u8 *rsnxe, unsigned int capab);
Dwpa_common.h417 const u8 *rsnxe, size_t rsnxe_len,
518 const u8 *rsnxe; member
586 const u8 *rsnxe; member
Dwpa_common.c825 const u8 *rsnxe, size_t rsnxe_len, in wpa_ft_mic() argument
896 if (rsnxe) { in wpa_ft_mic()
897 addr[num_elem] = rsnxe; in wpa_ft_mic()
1051 parse->rsnxe = pos; in wpa_ft_parse_ies()
1136 if (parse->rsnxe) in wpa_ft_parse_ies()
3175 ie->rsnxe = pos; in wpa_parse_kde_ies()
3178 ie->rsnxe, ie->rsnxe_len); in wpa_parse_kde_ies()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dpasn_supplicant.c1168 const u8 *rsne, *rsnxe; in wpas_pasn_auth_start_cb() local
1202 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in wpas_pasn_auth_start_cb()
1206 rsnxe, rsnxe ? *(rsnxe + 1) + 2 : 0, in wpas_pasn_auth_start_cb()
Dsme.c147 const u8 *rsnxe; in sme_auth_build_sae_commit() local
149 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in sme_auth_build_sae_commit()
150 if (rsnxe && rsnxe[1] >= 1) in sme_auth_build_sae_commit()
151 rsnxe_capa = rsnxe[2]; in sme_auth_build_sae_commit()
665 wpa_s->rsnxe, wpa_s->rsnxe_len); in sme_send_authentication()
2108 if (elems.rsnxe) in sme_associate()
2109 wpa_sm_set_assoc_rsnxe(wpa_s->wpa, elems.rsnxe - 2, in sme_associate()
Dwpa_supplicant_i.h824 u8 rsnxe[20]; member
Dctrl_iface.c2997 const u8 *ie, *ie2, *osen_ie, *p2p, *mesh, *owe, *rsnxe; in wpa_supplicant_ctrl_iface_scan_result() local
3027 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in wpa_supplicant_ctrl_iface_scan_result()
3028 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_H2E)) { in wpa_supplicant_ctrl_iface_scan_result()
3034 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_PK)) { in wpa_supplicant_ctrl_iface_scan_result()
5018 const u8 *ie, *ie2, *osen_ie, *mesh, *owe, *rsnxe; in print_bss_info() local
5138 rsnxe = wpa_bss_get_ie(bss, WLAN_EID_RSNX); in print_bss_info()
5139 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_H2E)) { in print_bss_info()
5145 if (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_PK)) { in print_bss_info()
Dwpa_supplicant.c1762 wpa_s->rsnxe_len = sizeof(wpa_s->rsnxe); in wpa_supplicant_set_suites()
1763 if (wpa_sm_set_assoc_rsnxe_default(wpa_s->wpa, wpa_s->rsnxe, in wpa_supplicant_set_suites()
3375 os_memcpy(wpa_ie + wpa_ie_len, wpa_s->rsnxe, wpa_s->rsnxe_len); in wpas_populate_assoc_ies()