Home
last modified time | relevance | path

Searched refs:rsn_ie (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/wpa/src/pasn/
H A Dpasn_responder.c434 const u8 *frame, *data, *rsn_ie, *rsnxe_ie; in handle_auth_pasn_resp() local
518 if (pasn->rsn_ie && pasn->rsn_ie_len) { in handle_auth_pasn_resp()
519 rsn_ie = pasn->rsn_ie; in handle_auth_pasn_resp()
536 rsn_ie = wpabuf_head_u8(rsn_buf); in handle_auth_pasn_resp()
544 data_len = rsn_ie[1] + 2; in handle_auth_pasn_resp()
546 data_buf = os_zalloc(rsn_ie[1] + 2 + rsnxe_ie[1] + 2); in handle_auth_pasn_resp()
550 os_memcpy(data_buf, rsn_ie, rsn_ie[1] + 2); in handle_auth_pasn_resp()
551 os_memcpy(data_buf + rsn_ie[1] + 2, rsnxe_ie, rsnxe_ie[1] + 2); in handle_auth_pasn_resp()
555 data = rsn_ie; in handle_auth_pasn_resp()
629 if (!elems.rsn_ie) { in handle_auth_pasn_1()
[all …]
H A Dpasn_initiator.c351 if (!elems.rsn_ie || !elems.fils_nonce || !elems.fils_nonce || in wpas_pasn_wd_fils_rx()
357 ret = wpa_parse_wpa_ie(elems.rsn_ie - 2, elems.rsn_ie_len + 2, in wpas_pasn_wd_fils_rx()
748 pasn->rsn_ie = NULL; in wpa_pasn_reset()
1160 if (!elems.rsn_ie) { in wpa_pasn_auth_rx()
1165 ret = wpa_parse_wpa_ie(elems.rsn_ie - 2, elems.rsn_ie_len + 2, in wpa_pasn_auth_rx()
1285 if (elems.rsn_ie && elems.rsn_ie_len) in wpa_pasn_auth_rx()
1294 if (elems.rsn_ie && elems.rsn_ie_len) in wpa_pasn_auth_rx()
1295 os_memcpy(rsne_rsnxe, elems.rsn_ie - 2, in wpa_pasn_auth_rx()
H A Dpasn_common.h125 const u8 *rsn_ie; member
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa_ie.c129 static int wpa_gen_wpa_ie_rsn(u8 *rsn_ie, size_t rsn_ie_len, in wpa_gen_wpa_ie_rsn() argument
146 hdr = (struct rsn_ie_hdr *) rsn_ie; in wpa_gen_wpa_ie_rsn()
270 hdr->len = (pos - rsn_ie) - 2; in wpa_gen_wpa_ie_rsn()
272 WPA_ASSERT((size_t) (pos - rsn_ie) <= rsn_ie_len); in wpa_gen_wpa_ie_rsn()
274 return pos - rsn_ie; in wpa_gen_wpa_ie_rsn()
H A Dtdls.c2116 if (kde.rsn_ie) { in wpa_tdls_process_tpk_m1()
2126 kde.rsn_ie == NULL) { in wpa_tdls_process_tpk_m1()
2139 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) { in wpa_tdls_process_tpk_m1()
2204 os_memcpy(peer->rsnie_i, kde.rsn_ie, kde.rsn_ie_len); in wpa_tdls_process_tpk_m1()
2230 hdr = (struct rsn_ie_hdr *) kde.rsn_ie; in wpa_tdls_process_tpk_m1()
2509 kde.rsn_ie == NULL) { in wpa_tdls_process_tpk_m2()
2515 kde.rsn_ie, kde.rsn_ie_len); in wpa_tdls_process_tpk_m2()
2531 os_memcmp(peer->rsnie_i, kde.rsn_ie, peer->rsnie_i_len) != 0) { in wpa_tdls_process_tpk_m2()
2537 kde.rsn_ie, kde.rsn_ie_len); in wpa_tdls_process_tpk_m2()
2542 if (wpa_parse_wpa_ie_rsn(kde.rsn_ie, kde.rsn_ie_len, &ie) < 0) { in wpa_tdls_process_tpk_m2()
[all …]
H A Dwpa.c1961 const u8 *rsn_ie, size_t rsn_ie_len) in wpa_report_ie_mismatch() argument
1983 if (rsn_ie) { in wpa_report_ie_mismatch()
1989 rsn_ie, rsn_ie_len); in wpa_report_ie_mismatch()
2063 if (!ie->rsn_ie) in ft_validate_rsnie()
2070 if (wpa_parse_wpa_ie_rsn(ie->rsn_ie, ie->rsn_ie_len, &rsn) < 0 || in ft_validate_rsnie()
2146 if (ie->wpa_ie == NULL && ie->rsn_ie == NULL && in wpa_supplicant_validate_ie()
2151 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
2158 (ie->rsn_ie && sm->ap_rsn_ie && in wpa_supplicant_validate_ie()
2161 ie->rsn_ie, ie->rsn_ie_len))) { in wpa_supplicant_validate_ie()
2165 ie->rsn_ie, ie->rsn_ie_len); in wpa_supplicant_validate_ie()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dieee802_11.h202 const u8 *rsn_ie, size_t rsn_ie_len,
206 const u8 *rsn_ie, size_t rsn_ie_len,
H A Dieee802_11.c1919 elems.rsn_ie, elems.rsn_ie_len); in handle_auth_fils()
1920 if (!elems.rsn_ie || in handle_auth_fils()
1921 wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, elems.rsn_ie_len + 2, in handle_auth_fils()
1940 elems.rsn_ie - 2, elems.rsn_ie_len + 2, in handle_auth_fils()
2559 if (!elems.rsn_ie || !elems.fils_nonce || !elems.fils_nonce || in pasn_wd_handle_fils()
2565 ret = wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, elems.rsn_ie_len + 2, in pasn_wd_handle_fils()
2662 pasn->rsn_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &pasn->rsn_ie_len); in hapd_initialize_pasn()
2730 if (!elems.rsn_ie || in hapd_pasn_update_params()
2731 wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, elems.rsn_ie_len + 2, in hapd_pasn_update_params()
3766 const u8 *rsn_ie, size_t rsn_ie_len, in owe_validate_request() argument
[all …]
H A Ddrv_callbacks.c312 } else if (elems.rsn_ie) { in hostapd_notif_assoc()
313 ie = elems.rsn_ie - 2; in hostapd_notif_assoc()
2309 status = owe_validate_request(hapd, peer, elems.rsn_ie, in hostapd_notif_update_dh_ie()
2349 status = owe_process_rsn_ie(hapd, sta, elems.rsn_ie, in hostapd_notif_update_dh_ie()
H A Dap_config.h45 u8 *rsn_ie; member
/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh.c61 if (ifmsh->mconf->rsn_ie) { in wpa_supplicant_mesh_iface_deinit()
62 ifmsh->mconf->rsn_ie = NULL; in wpa_supplicant_mesh_iface_deinit()
282 params->ies = ifmsh->mconf->rsn_ie; in wpas_mesh_complete()
H A Dmesh_mpm.c299 wpabuf_put_data(buf, conf->rsn_ie, conf->rsn_ie_len); in mesh_mpm_send_plink_action()
1295 if (action_field == PLINK_OPEN && elems.rsn_ie) { in mesh_mpm_action_rx()
1299 res = wpa_parse_wpa_ie_rsn(elems.rsn_ie - 2, in mesh_mpm_action_rx()
1306 wpa_hexdump(MSG_DEBUG, "RSN IE", elems.rsn_ie, in mesh_mpm_action_rx()
H A Devents.c654 const u8 *rsn_ie, *wpa_ie; in wpa_supplicant_ssid_bss_match() local
673 rsn_ie = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpa_supplicant_ssid_bss_match()
674 if (is_6ghz_bss && !rsn_ie) { in wpa_supplicant_ssid_bss_match()
681 while ((ssid->proto & (WPA_PROTO_RSN | WPA_PROTO_OSEN)) && rsn_ie) { in wpa_supplicant_ssid_bss_match()
684 if (wpa_parse_wpa_ie(rsn_ie, 2 + rsn_ie[1], &ie)) { in wpa_supplicant_ssid_bss_match()
804 !wpa_ie && !rsn_ie && in wpa_supplicant_ssid_bss_match()
881 !rsn_ie) { in wpa_supplicant_ssid_bss_match()
890 !wpa_ie && !rsn_ie) { in wpa_supplicant_ssid_bss_match()
H A Dbss.c1661 if (!elems.rsn_ie || in wpa_bss_parse_basic_ml_element()
1662 wpa_parse_wpa_ie(elems.rsn_ie - 2, 2 + elems.rsn_ie_len, in wpa_bss_parse_basic_ml_element()
H A Dmesh_rsn.c291 conf->rsn_ie = (u8 *) ie; in mesh_rsn_auth_init()
/freebsd/sys/net80211/
H A Dieee80211_ioctl.c182 if (ni->ni_ies.rsn_ie != NULL) { in ieee80211_ioctl_getwpaie()
183 int ielen = ni->ni_ies.rsn_ie[1] + 2; in ieee80211_ioctl_getwpaie()
184 if (ielen > sizeof(wpaie->rsn_ie)) in ieee80211_ioctl_getwpaie()
185 ielen = sizeof(wpaie->rsn_ie); in ieee80211_ioctl_getwpaie()
186 memcpy(wpaie->rsn_ie, ni->ni_ies.rsn_ie, ielen); in ieee80211_ioctl_getwpaie()
193 if (ni->ni_ies.rsn_ie != NULL) { in ieee80211_ioctl_getwpaie()
194 int ielen = ni->ni_ies.rsn_ie[1] + 2; in ieee80211_ioctl_getwpaie()
197 memcpy(wpaie->wpa_ie, ni->ni_ies.rsn_ie, ielen); in ieee80211_ioctl_getwpaie()
H A Dieee80211_node.h79 uint8_t *rsn_ie; /* captured RSN ie */ member
H A Dieee80211_ioctl.h405 uint8_t rsn_ie[IEEE80211_MAX_OPT_IE]; member
H A Dieee80211_ddb.c255 ni->ni_ies.wpa_ie, ni->ni_ies.rsn_ie, ni->ni_ies.wme_ie, in _db_show_sta()
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_bsd.c1287 const u8 *wpa_ie, *rsn_ie; in wpa_driver_bsd_associate() local
1338 rsn_ie = get_ie(params->wpa_ie, params->wpa_ie_len, in wpa_driver_bsd_associate()
1340 if (rsn_ie) { in wpa_driver_bsd_associate()
1342 rsn_ie) < 0) in wpa_driver_bsd_associate()
H A Ddriver_atheros.c1193 ie.rsn_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta()
1203 if (iebuf[1] == 0 && ie.rsn_ie[1] > 0) { in atheros_new_sta()
1206 iebuf = ie.rsn_ie; in atheros_new_sta()
/freebsd/contrib/wpa/src/common/
H A Dwpa_common.h528 int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
653 const u8 *rsn_ie; member
H A Dwpa_common.c1855 int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len, in wpa_parse_wpa_ie_rsn() argument
1883 if (rsn_ie_len >= 6 && rsn_ie[1] >= 4 && in wpa_parse_wpa_ie_rsn()
1884 rsn_ie[1] == rsn_ie_len - 2 && in wpa_parse_wpa_ie_rsn()
1885 WPA_GET_BE32(&rsn_ie[2]) == OSEN_IE_VENDOR_TYPE) { in wpa_parse_wpa_ie_rsn()
1886 pos = rsn_ie + 6; in wpa_parse_wpa_ie_rsn()
1896 hdr = (const struct rsn_ie_hdr *) rsn_ie; in wpa_parse_wpa_ie_rsn()
3658 ie->rsn_ie = pos; in wpa_parse_kde_ies()
3661 ie->rsn_ie, ie->rsn_ie_len); in wpa_parse_kde_ies()
H A Dieee802_11_common.h48 const u8 *rsn_ie; member
H A Dieee802_11_common.c480 elems->rsn_ie = pos; in __ieee802_11_parse_elems()
737 elems->rsn_ie = NULL; in ieee802_11_elems_clear_ids()

12