Home
last modified time | relevance | path

Searched refs:ie_len (Results 1 – 25 of 51) sorted by relevance

123

/external/wpa_supplicant_8/src/ap/
Dtaxonomy.c104 size_t ie_len; in ie_to_string() local
121 ie_len = wpabuf_len(ies); in ie_to_string()
123 while (ie_len >= 2) { in ie_to_string()
129 ie_len -= 2; in ie_to_string()
131 if (elen > ie_len) in ie_to_string()
226 ie_len -= elen; in ie_to_string()
270 const u8 *ie, size_t ie_len) in taxonomy_sta_info_probe_req() argument
273 sta->probe_ie_taxonomy = wpabuf_alloc_copy(ie, ie_len); in taxonomy_sta_info_probe_req()
279 const u8 *ie, size_t ie_len) in taxonomy_hostapd_sta_info_probe_req() argument
282 info->probe_ie_taxonomy = wpabuf_alloc_copy(ie, ie_len); in taxonomy_hostapd_sta_info_probe_req()
[all …]
Dmbo_ap.c103 u8 ie_len = pos[1]; in mbo_ap_check_sta_assoc() local
105 if (2 + ie_len > end - pos) in mbo_ap_check_sta_assoc()
109 mbo_ap_parse_non_pref_chan(sta, pos + 2, ie_len); in mbo_ap_check_sta_assoc()
212 u8 ie_len; in mbo_ap_wnm_notification_req() local
227 ie_len = pos[1]; in mbo_ap_wnm_notification_req()
229 if (2 + ie_len > end - pos) in mbo_ap_wnm_notification_req()
233 ie_len >= 4 && WPA_GET_BE24(pos + 2) == OUI_WFA) in mbo_ap_wnm_notification_req()
235 pos + 6, ie_len - 4, in mbo_ap_wnm_notification_req()
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);
Dhostapd.h70 const u8 *ie, size_t ie_len, int ssi_signal);
567 const u8 *ie, size_t ie_len,
582 const u8 *bssid, const u8 *ie, size_t ie_len,
Dbeacon.c787 size_t ie_len; in handle_probe_req() local
800 ie_len = len - IEEE80211_HDRLEN; in handle_probe_req()
805 ie, ie_len, ssi_signal) > 0) in handle_probe_req()
811 if (ieee802_11_parse_elems(ie, ie_len, &elems, 0) == ParseFailed) { in handle_probe_req()
848 wps = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in handle_probe_req()
861 p2p = ieee802_11_vendor_ie_concat(ie, ie_len, P2P_IE_VENDOR_TYPE); in handle_probe_req()
895 taxonomy_sta_info_probe_req(hapd, sta, ie, ie_len); in handle_probe_req()
899 ie, ie_len); in handle_probe_req()
Dwnm_ap.c212 u8 ie_len = pos[1]; in ieee802_11_rx_wnmsleep_req() local
213 if (pos + 2 + ie_len > frm + len) in ieee802_11_rx_wnmsleep_req()
216 ie_len >= (int) sizeof(*wnmsleep_ie) - 2) in ieee802_11_rx_wnmsleep_req()
225 pos += ie_len + 2; in ieee802_11_rx_wnmsleep_req()
/external/wpa_supplicant_8/src/p2p/
Dp2p_build.c478 const char *svc_name, u8 **ie_len, u8 **pos, in p2p_buf_add_service_info() argument
503 if (*ie_len) { in p2p_buf_add_service_info()
504 int ie_data_len = (*pos - *ie_len) - 1; in p2p_buf_add_service_info()
518 *ie_len = p2p_buf_add_ie_hdr(buf); in p2p_buf_add_service_info()
538 p2p_buf_update_ie_hdr(buf, *ie_len); in p2p_buf_add_service_info()
539 *ie_len = p2p_buf_add_ie_hdr(buf); in p2p_buf_add_service_info()
560 p2p_buf_update_ie_hdr(buf, *ie_len); in p2p_buf_add_service_info()
561 *ie_len = p2p_buf_add_ie_hdr(buf); in p2p_buf_add_service_info()
568 p2p_buf_update_ie_hdr(buf, *ie_len); in p2p_buf_add_service_info()
569 *ie_len = p2p_buf_add_ie_hdr(buf); in p2p_buf_add_service_info()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dbss.c431 bss = os_zalloc(sizeof(*bss) + res->ie_len + res->beacon_ie_len); in wpa_bss_add()
439 bss->ie_len = res->ie_len; in wpa_bss_add()
441 os_memcpy(bss + 1, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_add()
538 if (old->ie_len == new_res->ie_len && in wpa_bss_compare_res()
539 os_memcmp(old + 1, new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res()
661 if (bss->ie_len + bss->beacon_ie_len >= in wpa_bss_update()
662 res->ie_len + res->beacon_ie_len) { in wpa_bss_update()
663 os_memcpy(bss + 1, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_update()
664 bss->ie_len = res->ie_len; in wpa_bss_update()
670 nbss = os_realloc(bss, sizeof(*bss) + res->ie_len + in wpa_bss_update()
[all …]
Dmesh_mpm.c217 u8 ie_len, add_plid = 0; in mesh_mpm_send_plink_action() local
302 ie_len = 4; in mesh_mpm_send_plink_action()
304 ie_len += PMKID_LEN; in mesh_mpm_send_plink_action()
309 ie_len += 2; in mesh_mpm_send_plink_action()
313 ie_len += 2; in mesh_mpm_send_plink_action()
315 ie_len += 2; /* reason code */ in mesh_mpm_send_plink_action()
320 wpabuf_put_u8(buf, ie_len); in mesh_mpm_send_plink_action()
1071 size_t ie_len; in mesh_mpm_action_rx() local
1085 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx()
1089 if (ie_len < 2 + 2) { in mesh_mpm_action_rx()
[all …]
Dmesh.h28 const u8 *ies, size_t ie_len);
36 const u8 *ies, size_t ie_len) in wpa_mesh_notify_peer() argument
Dwnm_sta.c280 u8 ie_len = *(pos + 1); in ieee802_11_rx_wnmsleep_resp() local
281 if (2 + ie_len > frm + len - pos) { in ieee802_11_rx_wnmsleep_resp()
282 wpa_printf(MSG_INFO, "WNM: Invalid IE len %u", ie_len); in ieee802_11_rx_wnmsleep_resp()
285 wpa_hexdump(MSG_DEBUG, "WNM: Element", pos, 2 + ie_len); in ieee802_11_rx_wnmsleep_resp()
286 if (*pos == WLAN_EID_WNMSLEEP && ie_len >= 4) in ieee802_11_rx_wnmsleep_resp()
294 pos += ie_len + 2; in ieee802_11_rx_wnmsleep_resp()
1556 u8 ie, ie_len; in ieee802_11_rx_wnm_notif_req_wfa() local
1563 ie_len = *pos++; in ieee802_11_rx_wnm_notif_req_wfa()
1565 ie, ie_len); in ieee802_11_rx_wnm_notif_req_wfa()
1566 if (ie_len > end - pos) { in ieee802_11_rx_wnm_notif_req_wfa()
[all …]
Dop_classes.c281 u8 *ie_len; in wpas_supp_op_class_ie() local
303 ie_len = wpabuf_put(buf, 1); in wpas_supp_op_class_ie()
311 *ie_len = wpabuf_len(buf) - 2; in wpas_supp_op_class_ie()
312 if (*ie_len < 2 || wpabuf_len(buf) > len) { in wpas_supp_op_class_ie()
Devents.c2216 const u8 *ie, size_t ie_len) in wpas_fst_update_mbie() argument
2220 if (!ie || !ie_len || !wpa_s->fst) in wpas_fst_update_mbie()
2225 while (ie_len >= 2 && mb_ies.nof_ies < MAX_NOF_MB_IES_SUPPORTED) { in wpas_fst_update_mbie()
2229 if (len > ie_len) { in wpas_fst_update_mbie()
2231 ie, ie_len); in wpas_fst_update_mbie()
2239 mb_ies.ies[mb_ies.nof_ies].ie_len = len - 2; in wpas_fst_update_mbie()
2243 ie_len -= len; in wpas_fst_update_mbie()
2539 iebcn = ieprb + bss->ie_len; in wpas_fst_update_mb_assoc()
2541 if (!wpas_fst_update_mbie(wpa_s, ieprb, bss->ie_len)) in wpas_fst_update_mb_assoc()
3357 const u8 *ie, size_t ie_len, int deauth) in wpas_event_disconnect() argument
[all …]
Dp2p_supplicant.h128 u16 reason_code, const u8 *ie, size_t ie_len,
131 u16 reason_code, const u8 *ie, size_t ie_len,
177 const u8 *ie, size_t ie_len,
238 const u8 *ie, size_t ie_len, in wpas_p2p_probe_req_rx() argument
Drrm.c713 size_t ies_len = bss->ie_len ? bss->ie_len : bss->beacon_ie_len; in wpas_beacon_rep_add_frame_body()
797 size_t ie_len = bss->ie_len + bss->beacon_ie_len; in wpas_add_beacon_rep() local
813 buf = os_malloc(sizeof(*rep) + 14 + ie_len); in wpas_add_beacon_rep()
818 if (wpas_get_op_chan_phy(bss->freq, ie, ie_len, &rep->op_class, in wpas_add_beacon_rep()
833 bss, rep->variable, 14 + ie_len); in wpas_add_beacon_rep()
Dscan.c1698 size_t ie_len = res->ie_len; in wpa_scan_get_ie() local
1701 if (!ie_len) in wpa_scan_get_ie()
1702 ie_len = res->beacon_ie_len; in wpa_scan_get_ie()
1704 return get_ie((const u8 *) (res + 1), ie_len, ie); in wpa_scan_get_ie()
1723 end = pos + res->ie_len; in wpa_scan_get_vendor_ie()
1759 pos += res->ie_len; in wpa_scan_get_vendor_ie_beacon()
1791 buf = wpabuf_alloc(res->ie_len); in wpa_scan_get_vendor_ie_multi()
1796 end = pos + res->ie_len; in wpa_scan_get_vendor_ie_multi()
1973 if (r->ie_len) in dump_scan_res()
1974 wpa_hexdump(MSG_EXCESSIVE, "IEs", pos, r->ie_len); in dump_scan_res()
[all …]
Dwpa_priv.c205 val = sizeof(*r) + r->ie_len + r->beacon_ie_len; in wpa_priv_get_scan_results2()
257 if (sizeof(*auth) + auth->ie_len + auth->auth_data_len > len) { in wpa_priv_cmd_authenticate()
279 if (auth->ie_len) { in wpa_priv_cmd_authenticate()
281 params.ie_len = auth->ie_len; in wpa_priv_cmd_authenticate()
284 params.auth_data = ((u8 *) (auth + 1)) + auth->ie_len; in wpa_priv_cmd_authenticate()
/external/tcpdump/
Dprint-fr.c433 uint8_t ie_len; member
442 uint8_t ie_type,ie_len; in mfr_print() local
476 ie_len=tptr[1]; in mfr_print()
481 ie_len)); in mfr_print()
484 if (ie_type == 0 || ie_len <= sizeof(struct ie_tlv_header_t)) in mfr_print()
487 ND_TCHECK2(*tptr, ie_len); in mfr_print()
490 ie_len-=sizeof(struct ie_tlv_header_t); in mfr_print()
501 for (idx = 0; idx < ie_len && idx < MFR_ID_STRING_MAXLEN; idx++) { in mfr_print()
510 if (ie_len == sizeof(struct timeval)) { in mfr_print()
526 print_unknown_data(ndo, tptr, "\n\t ", ie_len); in mfr_print()
[all …]
/external/wpa_supplicant_8/src/drivers/
Ddriver_privsep.c191 if (sizeof(*r) + r->ie_len + r->beacon_ie_len > (size_t) len) { in wpa_driver_privsep_get_scan_results2()
194 (int) sizeof(*r), (int) r->ie_len, in wpa_driver_privsep_get_scan_results2()
256 buflen = sizeof(*data) + params->ie_len + params->auth_data_len; in wpa_driver_privsep_authenticate()
266 data->ie_len = params->ie_len; in wpa_driver_privsep_authenticate()
277 if (params->ie_len) { in wpa_driver_privsep_authenticate()
278 os_memcpy(pos, params->ie, params->ie_len); in wpa_driver_privsep_authenticate()
279 pos += params->ie_len; in wpa_driver_privsep_authenticate()
414 int ie_len; in wpa_driver_privsep_event_assoc() local
423 os_memcpy(&ie_len, pos, sizeof(int)); in wpa_driver_privsep_event_assoc()
425 if (ie_len < 0 || ie_len > end - pos) in wpa_driver_privsep_event_assoc()
[all …]
Ddriver_nl80211_scan.c656 const u8 *ie, size_t ie_len) in nl80211_scan_filtered() argument
664 ssid = get_ie(ie, ie_len, WLAN_EID_SSID); in nl80211_scan_filtered()
704 size_t ie_len, beacon_ie_len; in nl80211_parse_bss_info() local
716 ie_len = nla_len(bss[NL80211_BSS_INFORMATION_ELEMENTS]); in nl80211_parse_bss_info()
719 ie_len = 0; in nl80211_parse_bss_info()
730 ie ? ie_len : beacon_ie_len)) in nl80211_parse_bss_info()
733 r = os_zalloc(sizeof(*r) + ie_len + beacon_ie_len); in nl80211_parse_bss_info()
781 r->ie_len = ie_len; in nl80211_parse_bss_info()
784 os_memcpy(pos, ie, ie_len); in nl80211_parse_bss_info()
785 pos += ie_len; in nl80211_parse_bss_info()
Ddriver_wext.c1191 size_t ie_len; member
1345 tmp = os_realloc(res->ie, res->ie_len + gend - gpos); in wext_get_scan_iwevgenie()
1348 os_memcpy(tmp + res->ie_len, gpos, gend - gpos); in wext_get_scan_iwevgenie()
1350 res->ie_len += gend - gpos; in wext_get_scan_iwevgenie()
1373 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom()
1377 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom()
1379 res->ie_len += bytes; in wext_get_scan_custom()
1388 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom()
1392 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom()
1394 res->ie_len += bytes; in wext_get_scan_custom()
[all …]
Ddriver_atheros.c708 atheros_set_opt_ie(void *priv, const u8 *ie, size_t ie_len) in atheros_set_opt_ie() argument
715 (unsigned long) ie_len); in atheros_set_opt_ie()
716 wpa_hexdump(MSG_DEBUG, "atheros: set_generic_elem", ie, ie_len); in atheros_set_opt_ie()
720 drv->wpa_ie = wpabuf_alloc_copy(ie, ie_len); in atheros_set_opt_ie()
726 os_memcpy(&(app_ie->app_buf[0]), ie, ie_len); in atheros_set_opt_ie()
727 app_ie->app_buflen = ie_len; in atheros_set_opt_ie()
733 os_memcpy(&(app_ie->app_buf[ie_len]), in atheros_set_opt_ie()
736 app_ie->app_buflen = ie_len + wpabuf_len(drv->wps_beacon_ie); in atheros_set_opt_ie()
747 os_memcpy(&(app_ie->app_buf[ie_len]), in atheros_set_opt_ie()
750 app_ie->app_buflen = ie_len + in atheros_set_opt_ie()
[all …]
Ddriver.h307 size_t ie_len; member
588 size_t ie_len; member
1383 int ie_len; member
4747 size_t ie_len; member
4778 size_t ie_len; member
5066 size_t ie_len; member
5258 size_t ie_len; member
/external/wpa_supplicant_8/src/rsn_supp/
Dtdls.c53 u8 ie_len; member
63 u8 ie_len; member
70 u8 ie_len; member
83 static u8 * wpa_add_tdls_timeoutie(u8 *pos, u8 *ie, size_t ie_len, u32 tsecs);
170 static u8 * wpa_add_ie(u8 *pos, const u8 *ie, size_t ie_len) in wpa_add_ie() argument
172 os_memcpy(pos, ie, ie_len); in wpa_add_ie()
173 return pos + ie_len; in wpa_add_ie()
734 lnkid->ie_len = 3 * ETH_ALEN; in wpa_tdls_linkid()
806 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_teardown()
812 ftie->ie_len += 170; in wpa_tdls_send_teardown()
[all …]
/external/wpa_supplicant_8/src/common/
Dhw_features_common.c154 ieee802_11_parse_elems((u8 *) (bss + 1), bss->ie_len, &elems, 0); in get_pri_sec_chan()
247 ieee802_11_parse_elems((u8 *) (bss + 1), bss->ie_len, &elems, 0); in check_20mhz_bss()
331 ieee802_11_parse_elems((u8 *) (bss + 1), bss->ie_len, &elems, in check_40mhz_2g4()

123