Home
last modified time | relevance | path

Searched refs:ie (Results 1 – 25 of 90) sorted by relevance

1234

/hostap-latest/wpa_supplicant/
Dwifi_display.c41 struct wpabuf *ie; in wifi_display_get_wfd_ie() local
54 ie = wpabuf_alloc(len); in wifi_display_get_wfd_ie()
55 if (ie == NULL) in wifi_display_get_wfd_ie()
60 wpabuf_put_buf(ie, global->wfd_subelem[i]); in wifi_display_get_wfd_ie()
63 return ie; in wifi_display_get_wfd_ie()
69 struct wpabuf *ie, *buf; in wifi_display_update_wfd_ie() local
174 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
175 wpa_hexdump_buf(MSG_DEBUG, "WFD: WFD IE for Beacon", ie); in wifi_display_update_wfd_ie()
176 p2p_set_wfd_ie_beacon(global->p2p, ie); in wifi_display_update_wfd_ie()
178 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
[all …]
Dbss.c27 const u8 *ie = wpa_bss_get_ie(bss, WLAN_EID_INTERWORKING); in wpa_bss_set_hessid() local
28 if (ie == NULL || (ie[1] != 7 && ie[1] != 9)) { in wpa_bss_set_hessid()
32 if (ie[1] == 7) in wpa_bss_set_hessid()
33 os_memcpy(bss->hessid, ie + 3, ETH_ALEN); in wpa_bss_set_hessid()
35 os_memcpy(bss->hessid, ie + 5, ETH_ALEN); in wpa_bss_set_hessid()
539 const struct wpa_scan_res *new_res, u32 ie) in are_ies_equal() argument
546 switch (ie) { in are_ies_equal()
548 old_ie = wpa_bss_get_vendor_ie(old, ie); in are_ies_equal()
549 new_ie = wpa_scan_get_vendor_ie(new_res, ie); in are_ies_equal()
553 old_ie_buff = wpa_bss_get_vendor_ie_multi(old, ie); in are_ies_equal()
[all …]
Devents.c447 struct wpa_ie_data ie; in wpa_find_assoc_pmkid() local
459 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid()
460 ie.pmkid == NULL) in wpa_find_assoc_pmkid()
463 for (i = 0; i < ie.num_pmkid; i++) { in wpa_find_assoc_pmkid()
465 ie.pmkid + i * PMKID_LEN, in wpa_find_assoc_pmkid()
656 struct wpa_ie_data ie; in wpa_supplicant_ssid_bss_match() local
688 if (wpa_parse_wpa_ie(rsn_ie, 2 + rsn_ie[1], &ie)) { in wpa_supplicant_ssid_bss_match()
694 if (!ie.has_pairwise) in wpa_supplicant_ssid_bss_match()
695 ie.pairwise_cipher = wpa_default_rsn_cipher(bss->freq); in wpa_supplicant_ssid_bss_match()
696 if (!ie.has_group) in wpa_supplicant_ssid_bss_match()
[all …]
Dmbo.c107 struct wpa_ie_data ie; in wpas_mbo_check_pmf() local
119 if (!rsne || wpa_parse_wpa_ie(rsne, 2 + rsne[1], &ie) < 0) in wpas_mbo_check_pmf()
122 if (!(ie.capabilities & WPA_CAPABILITY_MFPC)) in wpas_mbo_check_pmf()
463 void wpas_mbo_scan_ie(struct wpa_supplicant *wpa_s, struct wpabuf *ie) in wpas_mbo_scan_ie() argument
467 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wpas_mbo_scan_ie()
468 len = wpabuf_put(ie, 1); in wpas_mbo_scan_ie()
470 wpabuf_put_be24(ie, OUI_WFA); in wpas_mbo_scan_ie()
471 wpabuf_put_u8(ie, MBO_OUI_TYPE); in wpas_mbo_scan_ie()
473 wpabuf_put_u8(ie, MBO_ATTR_ID_CELL_DATA_CAPA); in wpas_mbo_scan_ie()
474 wpabuf_put_u8(ie, 1); in wpas_mbo_scan_ie()
[all …]
Dwpas_glue.c402 const u8 *ie; in wpa_get_beacon_ie() local
424 ie = wpa_bss_get_vendor_ie(curr, WPA_IE_VENDOR_TYPE); in wpa_get_beacon_ie()
425 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
428 ie = wpa_bss_get_ie(curr, WLAN_EID_RSN); in wpa_get_beacon_ie()
429 if (wpa_sm_set_ap_rsn_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
432 ie = wpa_bss_get_ie(curr, WLAN_EID_RSNX); in wpa_get_beacon_ie()
433 if (wpa_sm_set_ap_rsnxe(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
436 ie = wpa_bss_get_vendor_ie(curr, RSNE_OVERRIDE_IE_VENDOR_TYPE); in wpa_get_beacon_ie()
437 if (wpa_sm_set_ap_rsne_override(wpa_s->wpa, ie, in wpa_get_beacon_ie()
438 ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
[all …]
Dwpa_supplicant.c369 struct wpabuf *ie; in wpa_supplicant_initiate_eapol() local
370 ie = wpa_bss_get_vendor_ie_multi(wpa_s->current_bss, in wpa_supplicant_initiate_eapol()
372 if (ie) { in wpa_supplicant_initiate_eapol()
373 if (wps_is_20(ie)) in wpa_supplicant_initiate_eapol()
376 wpabuf_free(ie); in wpa_supplicant_initiate_eapol()
954 const u8 *ie; in wpas_verify_ssid_beacon() local
960 ie = wpa_bss_get_ie_beacon(bss, WLAN_EID_SSID); in wpas_verify_ssid_beacon()
961 if (ie && ie[1] == ssid_len && in wpas_verify_ssid_beacon()
962 os_memcmp(&ie[2], ssid, ssid_len) == 0) { in wpas_verify_ssid_beacon()
1346 struct wpa_ie_data *ie) in wpa_supplicant_suites_from_ai() argument
[all …]
Dscan.c592 struct wpabuf **ie) in wpas_fils_req_param_add_max_channel() argument
594 if (wpabuf_resize(ie, 5)) { in wpas_fils_req_param_add_max_channel()
601 wpabuf_put_u8(*ie, WLAN_EID_EXTENSION); in wpas_fils_req_param_add_max_channel()
602 wpabuf_put_u8(*ie, 3); /* FILS Request attribute length */ in wpas_fils_req_param_add_max_channel()
603 wpabuf_put_u8(*ie, WLAN_EID_EXT_FILS_REQ_PARAMS); in wpas_fils_req_param_add_max_channel()
605 wpabuf_put_u8(*ie, 0); in wpas_fils_req_param_add_max_channel()
612 wpabuf_put_u8(*ie, 255); in wpas_fils_req_param_add_max_channel()
2061 const u8 *ie; in wpa_scan_get_max_rate() local
2064 ie = wpa_scan_get_ie(res, WLAN_EID_SUPP_RATES); in wpa_scan_get_max_rate()
2065 for (i = 0; ie && i < ie[1]; i++) { in wpa_scan_get_max_rate()
[all …]
Dsme.c558 const u8 *ie; in sme_send_authentication() local
797 ie = wpa_bss_get_ie(bss, WLAN_EID_MOBILITY_DOMAIN); in sme_send_authentication()
798 if (ie && ie[1] >= MOBILITY_DOMAIN_ID_LEN) in sme_send_authentication()
799 md = ie + 2; in sme_send_authentication()
800 wpa_sm_set_ft_params(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0); in sme_send_authentication()
806 wpa_ft_prepare_auth_request(wpa_s->wpa, ie); in sme_send_authentication()
834 params.ie = wpa_s->sme.ft_ies; in sme_send_authentication()
2398 wpabuf_len(wpa_s->dpp_pfs->ie) > in sme_associate()
2407 wpabuf_head(wpa_s->dpp_pfs->ie), in sme_associate()
2408 wpabuf_len(wpa_s->dpp_pfs->ie)); in sme_associate()
[all …]
Dhs20_supplicant.c71 const u8 *ie; in hs20_configure_frame_filters() local
81 ie = wpa_bss_get_vendor_ie(bss, HS20_IE_VENDOR_TYPE); in hs20_configure_frame_filters()
84 if (!ie || ie[1] < 5) in hs20_configure_frame_filters()
87 else if (!(ie[6] & HS20_DGAF_DISABLED)) in hs20_configure_frame_filters()
147 const u8 *ie; in get_hs20_version() local
152 ie = wpa_bss_get_vendor_ie(bss, HS20_IE_VENDOR_TYPE); in get_hs20_version()
153 if (!ie || ie[1] < 5) in get_hs20_version()
156 return ((ie[6] >> 4) & 0x0f) + 1; in get_hs20_version()
1083 const u8 *ie; in hs20_osu_icon_fetch() local
1090 ie = wpa_bss_get_rsne(wpa_s, bss, NULL, false); in hs20_osu_icon_fetch()
[all …]
Dinterworking.c232 const u8 *ie; in additional_roaming_consortiums() local
233 ie = wpa_bss_get_ie(bss, WLAN_EID_ROAMING_CONSORTIUM); in additional_roaming_consortiums()
234 if (ie == NULL || ie[1] == 0) in additional_roaming_consortiums()
236 return ie[2]; /* Number of ANQP OIs */ in additional_roaming_consortiums()
1100 static int oi_element_match(const u8 *ie, const u8 *oi, size_t oi_len) in oi_element_match() argument
1105 if (ie == NULL) in oi_element_match()
1108 pos = ie + 2; in oi_element_match()
1109 end = ie + 2 + ie[1]; in oi_element_match()
1167 static int oi_match(const u8 *ie, const struct wpabuf *anqp, in oi_match() argument
1170 return oi_element_match(ie, oi, oi_len) || in oi_match()
[all …]
/hostap-latest/src/wps/
Dwps.c421 struct wpabuf *ie; in wps_build_assoc_req_ie() local
426 ie = wpabuf_alloc(100); in wps_build_assoc_req_ie()
427 if (ie == NULL) in wps_build_assoc_req_ie()
430 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wps_build_assoc_req_ie()
431 len = wpabuf_put(ie, 1); in wps_build_assoc_req_ie()
432 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA); in wps_build_assoc_req_ie()
434 if (wps_build_version(ie) || in wps_build_assoc_req_ie()
435 wps_build_req_type(ie, req_type) || in wps_build_assoc_req_ie()
436 wps_build_wfa_ext(ie, 0, NULL, 0, 0)) { in wps_build_assoc_req_ie()
437 wpabuf_free(ie); in wps_build_assoc_req_ie()
[all …]
Dwps_attr_build.c466 struct wpabuf *ie; in wps_ie_encapsulate() local
469 ie = wpabuf_alloc(wpabuf_len(data) + 100); in wps_ie_encapsulate()
470 if (ie == NULL) { in wps_ie_encapsulate()
482 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wps_ie_encapsulate()
483 wpabuf_put_u8(ie, 4 + frag_len); in wps_ie_encapsulate()
484 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA); in wps_ie_encapsulate()
485 wpabuf_put_data(ie, pos, frag_len); in wps_ie_encapsulate()
491 return ie; in wps_ie_encapsulate()
/hostap-latest/wlantest/
Drx_eapol.c98 struct wpa_eapol_ie_parse ie; in rx_data_eapol_key_1_of_4() local
155 if (wpa_parse_kde_ies(key_data, key_data_len, &ie) < 0) { in rx_data_eapol_key_1_of_4()
160 if (ie.mac_addr) { in rx_data_eapol_key_1_of_4()
164 MACSTR, MAC2STR(ie.mac_addr)); in rx_data_eapol_key_1_of_4()
165 } else if (!ether_addr_equal(bss->mld_mac_addr, ie.mac_addr)) { in rx_data_eapol_key_1_of_4()
170 MAC2STR(ie.mac_addr)); in rx_data_eapol_key_1_of_4()
172 os_memcpy(bss->mld_mac_addr, ie.mac_addr, ETH_ALEN); in rx_data_eapol_key_1_of_4()
335 struct wpa_eapol_ie_parse *ie) in elems_from_eapol_ie() argument
338 if (ie->wpa_ie) { in elems_from_eapol_ie()
339 elems->wpa_ie = ie->wpa_ie + 2; in elems_from_eapol_ie()
[all …]
/hostap-latest/src/ap/
Dtaxonomy.c103 const u8 *ie; in ie_to_string() local
120 ie = wpabuf_head(ies); in ie_to_string()
127 id = *ie++; in ie_to_string()
128 elen = *ie++; in ie_to_string()
136 if (WPA_GET_BE32(ie) == WPS_IE_VENDOR_TYPE) { in ie_to_string()
139 const u8 *data = &ie[4]; in ie_to_string()
152 sep, id, ie[0], ie[1], ie[2], ie[3]); in ie_to_string()
158 WPA_GET_LE16(ie)); in ie_to_string()
164 ",htagg:%02hx", (u16) ie[2]); in ie_to_string()
170 (u16) WPA_GET_LE32(ie + 3)); in ie_to_string()
[all …]
Drrm.c99 const u8 *pos, *ie, *end; in hostapd_handle_radio_msmt_report() local
106 while ((ie = get_ie(pos, end - pos, WLAN_EID_MEASURE_REPORT))) { in hostapd_handle_radio_msmt_report()
107 if (ie[1] < 3) { in hostapd_handle_radio_msmt_report()
112 rep_mode = ie[3]; in hostapd_handle_radio_msmt_report()
114 rep_mode, ie[4]); in hostapd_handle_radio_msmt_report()
116 switch (ie[4]) { in hostapd_handle_radio_msmt_report()
118 hostapd_handle_lci_report(hapd, token, ie + 2, ie[1]); in hostapd_handle_radio_msmt_report()
121 hostapd_handle_range_report(hapd, token, ie + 2, ie[1]); in hostapd_handle_radio_msmt_report()
125 rep_mode, ie + 2, ie[1]); in hostapd_handle_radio_msmt_report()
130 ie[4]); in hostapd_handle_radio_msmt_report()
[all …]
Dbeacon.c337 const u8 *ie; in hostapd_get_rsne() local
339 ie = hostapd_wpa_ie(hapd, WLAN_EID_RSN); in hostapd_get_rsne()
340 if (!ie || 2U + ie[1] > len) in hostapd_get_rsne()
343 os_memcpy(pos, ie, 2 + ie[1]); in hostapd_get_rsne()
344 return pos + 2 + ie[1]; in hostapd_get_rsne()
350 const u8 *ie; in hostapd_get_mde() local
352 ie = hostapd_wpa_ie(hapd, WLAN_EID_MOBILITY_DOMAIN); in hostapd_get_mde()
353 if (!ie || 2U + ie[1] > len) in hostapd_get_mde()
356 os_memcpy(pos, ie, 2 + ie[1]); in hostapd_get_mde()
357 return pos + 2 + ie[1]; in hostapd_get_mde()
[all …]
Dtaxonomy.h14 const u8 *ie, size_t ie_len);
17 const u8 *ie, size_t ie_len);
20 const u8 *ie, size_t ie_len);
/hostap-latest/src/p2p/
Dp2p_group.c127 static void p2p_client_info(struct wpabuf *ie, struct p2p_group_member *m) in p2p_client_info() argument
131 if (wpabuf_tailroom(ie) < wpabuf_len(m->client_info) + 1) in p2p_client_info()
133 wpabuf_put_buf(ie, m->client_info); in p2p_client_info()
138 struct wpabuf *ie) in p2p_group_add_common_ies() argument
160 p2p_buf_add_capability(ie, dev_capab, group_capab); in p2p_group_add_common_ies()
164 static void p2p_group_add_noa(struct wpabuf *ie, struct wpabuf *noa) in p2p_group_add_noa() argument
169 wpabuf_put_u8(ie, P2P_ATTR_NOTICE_OF_ABSENCE); in p2p_group_add_noa()
170 wpabuf_put_le16(ie, wpabuf_len(noa)); in p2p_group_add_noa()
171 wpabuf_put_buf(ie, noa); in p2p_group_add_noa()
177 struct wpabuf *ie; in p2p_group_encaps_probe_resp() local
[all …]
Dp2p.h1584 const u8 *bssid, const u8 *ie, size_t ie_len,
1691 const u8 *ie, size_t ie_len);
1694 const u8 *ie, size_t ie_len);
1804 const u8 *ie, size_t len);
2288 int p2p_set_wfd_ie_beacon(struct p2p_data *p2p, struct wpabuf *ie);
2289 int p2p_set_wfd_ie_probe_req(struct p2p_data *p2p, struct wpabuf *ie);
2290 int p2p_set_wfd_ie_probe_resp(struct p2p_data *p2p, struct wpabuf *ie);
2291 int p2p_set_wfd_ie_assoc_req(struct p2p_data *p2p, struct wpabuf *ie);
2292 int p2p_set_wfd_ie_invitation(struct p2p_data *p2p, struct wpabuf *ie);
2293 int p2p_set_wfd_ie_prov_disc_req(struct p2p_data *p2p, struct wpabuf *ie);
[all …]
/hostap-latest/src/rsn_supp/
Dwpa.c891 struct wpa_eapol_ie_parse ie; in wpa_supplicant_process_1_of_4_wpa() local
905 os_memset(&ie, 0, sizeof(ie)); in wpa_supplicant_process_1_of_4_wpa()
907 res = wpa_supplicant_get_pmk(sm, src_addr, ie.pmkid); in wpa_supplicant_process_1_of_4_wpa()
958 struct wpa_eapol_ie_parse ie; in wpa_supplicant_process_1_of_4() local
989 os_memset(&ie, 0, sizeof(ie)); in wpa_supplicant_process_1_of_4()
993 if (wpa_supplicant_parse_ies(key_data, key_data_len, &ie) < 0) { in wpa_supplicant_process_1_of_4()
998 if (ie.pmkid) { in wpa_supplicant_process_1_of_4()
1000 ie.pmkid, PMKID_LEN); in wpa_supplicant_process_1_of_4()
1003 if (sm->mlo.valid_links && !is_valid_ap_mld_mac_kde(sm, ie.mac_addr)) { in wpa_supplicant_process_1_of_4()
1009 res = wpa_supplicant_get_pmk(sm, src_addr, ie.pmkid); in wpa_supplicant_process_1_of_4()
[all …]
Dwpa.h208 int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
213 int wpa_sm_set_assoc_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
214 int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
215 int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
216 int wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
217 int wpa_sm_set_ap_rsne_override(struct wpa_sm *sm, const u8 *ie, size_t len);
218 int wpa_sm_set_ap_rsne_override_2(struct wpa_sm *sm, const u8 *ie, size_t len);
219 int wpa_sm_set_ap_rsnxe_override(struct wpa_sm *sm, const u8 *ie, size_t len);
337 static inline int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_assoc_wpa_ie() argument
350 static inline int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_wpa_ie() argument
[all …]
/hostap-latest/src/common/
Dwpa_common.c1028 static int wpa_ft_parse_ftie(const u8 *ie, size_t ie_len, in wpa_ft_parse_ftie() argument
1035 end = ie + ie_len; in wpa_ft_parse_ftie()
1152 static int wpa_ft_parse_fte(int key_mgmt, const u8 *ie, size_t len, in wpa_ft_parse_fte() argument
1157 const u8 *pos = ie; in wpa_ft_parse_fte()
1208 return wpa_ft_parse_ftie(ie, len, parse, pos); in wpa_ft_parse_fte()
3409 struct wpa_eapol_ie_parse *ie) in wpa_parse_vendor_specific() argument
3423 ie->wmm = &pos[2]; in wpa_parse_vendor_specific()
3424 ie->wmm_len = pos[1]; in wpa_parse_vendor_specific()
3426 ie->wmm, ie->wmm_len); in wpa_parse_vendor_specific()
3428 ie->wmm = &pos[2]; in wpa_parse_vendor_specific()
[all …]
/hostap-latest/tests/fuzzing/eapol-key-supp/
Deapol-key-supp.c154 const u8 *ie; in supp_get_beacon_ie() local
168 ie = wpa->wpa1 ? wpaie : rsne; in supp_get_beacon_ie()
169 if (ie[0] == WLAN_EID_RSN) in supp_get_beacon_ie()
170 return wpa_sm_set_ap_rsn_ie(wpa->supp, ie, 2 + ie[1]); in supp_get_beacon_ie()
171 return wpa_sm_set_ap_wpa_ie(wpa->supp, ie, 2 + ie[1]); in supp_get_beacon_ie()
/hostap-latest/src/drivers/
Ddriver_atheros.c703 atheros_set_opt_ie(void *priv, const u8 *ie, size_t ie_len) in atheros_set_opt_ie() argument
711 wpa_hexdump(MSG_DEBUG, "atheros: set_generic_elem", ie, ie_len); in atheros_set_opt_ie()
714 if (ie) in atheros_set_opt_ie()
715 drv->wpa_ie = wpabuf_alloc_copy(ie, ie_len); in atheros_set_opt_ie()
720 if (ie) in atheros_set_opt_ie()
721 os_memcpy(&(app_ie->app_buf[0]), ie, ie_len); in atheros_set_opt_ie()
888 event.rx_probe_req.ie = buf + IEEE80211_HDRLEN; in atheros_raw_receive()
1000 atheros_set_wps_ie(void *priv, const u8 *ie, size_t len, u32 frametype) in atheros_set_wps_ie() argument
1008 wpa_hexdump(MSG_DEBUG, "atheros: IE", ie, len); in atheros_set_wps_ie()
1013 if (ie) in atheros_set_wps_ie()
[all …]
/hostap-latest/tests/hwsim/
Dtest_dscp.py215 ie = prepare_qos_ie(5, 0, 48, 12345, 23456, frame_classifier, frame_len,
217 qos_ie += ie
220 ie = prepare_qos_ie(4, 0, 32, 12345, 23456, 0, 0, domain_name)
221 qos_ie += ie
339 ie = prepare_qos_ie(4, 0, 32, 12345, 23456, 0, 0, domain_name)
340 qos_ie += ie

1234