Home
last modified time | relevance | path

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

12

/external/tcpdump/
Dprint-fr.c431 uint8_t ie_len; member
440 uint8_t ie_type,ie_len; in mfr_print() local
474 ie_len=tptr[1]; in mfr_print()
479 ie_len)); in mfr_print()
482 if (ie_type == 0 || ie_len <= sizeof(struct ie_tlv_header_t)) in mfr_print()
485 ND_TCHECK2(*tptr, ie_len); in mfr_print()
488 ie_len-=sizeof(struct ie_tlv_header_t); in mfr_print()
499 for (idx = 0; idx < ie_len && idx < MFR_ID_STRING_MAXLEN; idx++) { in mfr_print()
508 if (ie_len == sizeof(struct timeval)) { in mfr_print()
524 print_unknown_data(ndo, tptr, "\n\t ", ie_len); in mfr_print()
[all …]
/external/wpa_supplicant_8/src/ap/
Dmbo_ap.c104 u8 ie_len = pos[1]; in mbo_ap_check_sta_assoc() local
106 if (2 + ie_len > end - pos) in mbo_ap_check_sta_assoc()
110 mbo_ap_parse_non_pref_chan(sta, pos + 2, ie_len); in mbo_ap_check_sta_assoc()
213 u8 ie_len; in mbo_ap_wnm_notification_req() local
228 ie_len = pos[1]; in mbo_ap_wnm_notification_req()
230 if (2 + ie_len > end - pos) in mbo_ap_wnm_notification_req()
234 ie_len >= 4 && WPA_GET_BE24(pos + 2) == OUI_WFA) in mbo_ap_wnm_notification_req()
236 pos + 6, ie_len - 4, in mbo_ap_wnm_notification_req()
Dhostapd.h66 const u8 *ie, size_t ie_len, int ssi_signal);
485 const u8 *ie, size_t ie_len,
498 const u8 *bssid, const u8 *ie, size_t ie_len,
Dutils.c21 const u8 *ie, size_t ie_len, in hostapd_register_probereq_cb() argument
Dbeacon.c680 size_t ie_len; in handle_probe_req() local
693 ie_len = len - IEEE80211_HDRLEN; in handle_probe_req()
698 ie, ie_len, ssi_signal) > 0) in handle_probe_req()
704 if (ieee802_11_parse_elems(ie, ie_len, &elems, 0) == ParseFailed) { in handle_probe_req()
741 wps = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in handle_probe_req()
754 p2p = ieee802_11_vendor_ie_concat(ie, ie_len, P2P_IE_VENDOR_TYPE); in handle_probe_req()
/external/wpa_supplicant_8/wpa_supplicant/
Dbss.c386 bss = os_zalloc(sizeof(*bss) + res->ie_len + res->beacon_ie_len); in wpa_bss_add()
394 bss->ie_len = res->ie_len; in wpa_bss_add()
396 os_memcpy(bss + 1, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_add()
493 if (old->ie_len == new_res->ie_len && in wpa_bss_compare_res()
494 os_memcmp(old + 1, new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res()
580 if (bss->ie_len + bss->beacon_ie_len >= in wpa_bss_update()
581 res->ie_len + res->beacon_ie_len) { in wpa_bss_update()
582 os_memcpy(bss + 1, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_update()
583 bss->ie_len = res->ie_len; in wpa_bss_update()
589 nbss = os_realloc(bss, sizeof(*bss) + res->ie_len + in wpa_bss_update()
[all …]
Dmesh_mpm.c218 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()
1014 size_t ie_len; in mesh_mpm_action_rx() local
1027 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx()
1031 if (ie_len < 2 + 2) { in mesh_mpm_action_rx()
[all …]
Dwnm_sta.c279 u8 ie_len = *(pos + 1); in ieee802_11_rx_wnmsleep_resp() local
280 if (2 + ie_len > frm + len - pos) { in ieee802_11_rx_wnmsleep_resp()
281 wpa_printf(MSG_INFO, "WNM: Invalid IE len %u", ie_len); in ieee802_11_rx_wnmsleep_resp()
284 wpa_hexdump(MSG_DEBUG, "WNM: Element", pos, 2 + ie_len); in ieee802_11_rx_wnmsleep_resp()
285 if (*pos == WLAN_EID_WNMSLEEP && ie_len >= 4) in ieee802_11_rx_wnmsleep_resp()
293 pos += ie_len + 2; in ieee802_11_rx_wnmsleep_resp()
1241 u8 ie, ie_len; in ieee802_11_rx_wnm_notif_req_wfa() local
1248 ie_len = *pos++; in ieee802_11_rx_wnm_notif_req_wfa()
1250 ie, ie_len); in ieee802_11_rx_wnm_notif_req_wfa()
1251 if (ie_len > end - pos) { in ieee802_11_rx_wnm_notif_req_wfa()
[all …]
Dmesh.h28 const u8 *ies, size_t ie_len);
36 const u8 *ies, size_t ie_len) in wpa_mesh_notify_peer() argument
Devents.c1906 const u8 *ie, size_t ie_len) in wpas_fst_update_mbie() argument
1910 if (!ie || !ie_len || !wpa_s->fst) in wpas_fst_update_mbie()
1915 while (ie_len >= 2 && mb_ies.nof_ies < MAX_NOF_MB_IES_SUPPORTED) { in wpas_fst_update_mbie()
1919 if (len > ie_len) { in wpas_fst_update_mbie()
1921 ie, ie_len); in wpas_fst_update_mbie()
1929 mb_ies.ies[mb_ies.nof_ies].ie_len = len - 2; in wpas_fst_update_mbie()
1933 ie_len -= len; in wpas_fst_update_mbie()
2199 iebcn = ieprb + bss->ie_len; in wpas_fst_update_mb_assoc()
2201 if (!wpas_fst_update_mbie(wpa_s, ieprb, bss->ie_len)) in wpas_fst_update_mb_assoc()
2994 const u8 *ie, size_t ie_len, int deauth) 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,
234 const u8 *ie, size_t ie_len, in wpas_p2p_probe_req_rx() argument
Dmbo.c593 u8 *ie_len; in wpas_mbo_supp_op_class_ie() local
615 ie_len = wpabuf_put(buf, 1); in wpas_mbo_supp_op_class_ie()
623 *ie_len = wpabuf_len(buf) - 2; in wpas_mbo_supp_op_class_ie()
624 if (*ie_len < 2 || wpabuf_len(buf) > len) { in wpas_mbo_supp_op_class_ie()
Dwpa_priv.c168 val = sizeof(*r) + r->ie_len; in wpa_priv_get_scan_results2()
221 if (sizeof(*auth) + auth->ie_len + auth->sae_data_len > len) { in wpa_priv_cmd_authenticate()
243 if (auth->ie_len) { in wpa_priv_cmd_authenticate()
245 params.ie_len = auth->ie_len; in wpa_priv_cmd_authenticate()
248 params.sae_data = ((u8 *) (auth + 1)) + auth->ie_len; in wpa_priv_cmd_authenticate()
Dmesh.c302 const u8 *ies, size_t ie_len) in wpa_mesh_notify_peer() argument
309 if (ieee802_11_parse_elems(ies, ie_len, &elems, 0) == ParseFailed) { in wpa_mesh_notify_peer()
412 params.ie_len = wpa_s->ifmsh->mconf->rsn_ie_len; in wpa_supplicant_join_mesh()
Dmesh_rsn.c201 size_t ie_len; in mesh_rsn_auth_init() local
216 ie = wpa_auth_get_wpa_ie(mesh_rsn->auth, &ie_len); in mesh_rsn_auth_init()
218 conf->rsn_ie_len = ie_len; in mesh_rsn_auth_init()
/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/src/drivers/
Ddriver_privsep.c176 if (sizeof(*r) + r->ie_len > (size_t) len) { in wpa_driver_privsep_get_scan_results2()
237 buflen = sizeof(*data) + params->ie_len + params->sae_data_len; in wpa_driver_privsep_authenticate()
247 data->ie_len = params->ie_len; in wpa_driver_privsep_authenticate()
258 if (params->ie_len) { in wpa_driver_privsep_authenticate()
259 os_memcpy(pos, params->ie, params->ie_len); in wpa_driver_privsep_authenticate()
260 pos += params->ie_len; in wpa_driver_privsep_authenticate()
395 int ie_len; in wpa_driver_privsep_event_assoc() local
404 os_memcpy(&ie_len, pos, sizeof(int)); in wpa_driver_privsep_event_assoc()
406 if (ie_len < 0 || ie_len > end - pos) in wpa_driver_privsep_event_assoc()
408 if (ie_len) { in wpa_driver_privsep_event_assoc()
[all …]
Ddriver_nl80211_scan.c542 const u8 *ie, size_t ie_len) in nl80211_scan_filtered() argument
550 ssid = get_ie(ie, ie_len, WLAN_EID_SSID); in nl80211_scan_filtered()
588 size_t ie_len, beacon_ie_len; in bss_info_handler() local
628 ie_len = nla_len(bss[NL80211_BSS_INFORMATION_ELEMENTS]); in bss_info_handler()
631 ie_len = 0; in bss_info_handler()
642 ie ? ie_len : beacon_ie_len)) in bss_info_handler()
645 r = os_zalloc(sizeof(*r) + ie_len + beacon_ie_len); in bss_info_handler()
676 r->ie_len = ie_len; in bss_info_handler()
679 os_memcpy(pos, ie, ie_len); in bss_info_handler()
680 pos += ie_len; in bss_info_handler()
[all …]
Ddriver_wext.c1201 size_t ie_len; member
1355 tmp = os_realloc(res->ie, res->ie_len + gend - gpos); in wext_get_scan_iwevgenie()
1358 os_memcpy(tmp + res->ie_len, gpos, gend - gpos); in wext_get_scan_iwevgenie()
1360 res->ie_len += gend - gpos; in wext_get_scan_iwevgenie()
1383 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom()
1387 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom()
1389 res->ie_len += bytes; in wext_get_scan_custom()
1398 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom()
1402 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom()
1404 res->ie_len += bytes; in wext_get_scan_custom()
[all …]
Ddriver.h259 size_t ie_len; member
469 size_t ie_len; member
1128 int ie_len; member
4230 size_t ie_len; member
4261 size_t ie_len; member
4532 size_t ie_len; member
4721 size_t ie_len; member
Ddriver_atheros.c684 atheros_set_opt_ie(void *priv, const u8 *ie, size_t ie_len) in atheros_set_opt_ie() argument
691 (unsigned long) ie_len); in atheros_set_opt_ie()
692 wpa_hexdump(MSG_DEBUG, "atheros: set_generic_elem", ie, ie_len); in atheros_set_opt_ie()
695 drv->wpa_ie = wpabuf_alloc_copy(ie, ie_len); in atheros_set_opt_ie()
698 os_memcpy(&(app_ie->app_buf[0]), ie, ie_len); in atheros_set_opt_ie()
699 app_ie->app_buflen = ie_len; in atheros_set_opt_ie()
705 os_memcpy(&(app_ie->app_buf[ie_len]), in atheros_set_opt_ie()
708 app_ie->app_buflen = ie_len + wpabuf_len(drv->wps_beacon_ie); in atheros_set_opt_ie()
719 os_memcpy(&(app_ie->app_buf[ie_len]), in atheros_set_opt_ie()
722 app_ie->app_buflen = ie_len + in atheros_set_opt_ie()
[all …]
/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);
169 static u8 * wpa_add_ie(u8 *pos, const u8 *ie, size_t ie_len) in wpa_add_ie() argument
171 os_memcpy(pos, ie, ie_len); in wpa_add_ie()
172 return pos + ie_len; in wpa_add_ie()
719 lnkid->ie_len = 3 * ETH_ALEN; in wpa_tdls_linkid()
791 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_teardown()
797 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()
Dieee802_11_common.c371 elems->mb_ies.ies[elems->mb_ies.nof_ies].ie_len = elen; in ieee802_11_parse_elems()
1145 info->ies[info->nof_ies].ie_len = ies_buf[1]; in mb_ies_info_by_ies()
1168 mb_ies_size += 2 + info->ies[i].ie_len; in mb_ies_by_info()
1174 wpabuf_put_u8(mb_ies, info->ies[i].ie_len); in mb_ies_by_info()
1177 info->ies[i].ie_len); in mb_ies_by_info()
Dprivsep_commands.h39 size_t ie_len; member

12