/external/wpa_supplicant_8/src/ap/ |
D | taxonomy.c | 104 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 …]
|
D | mbo_ap.c | 103 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()
|
D | taxonomy.h | 14 const u8 *ie, size_t ie_len); 17 const u8 *ie, size_t ie_len); 20 const u8 *ie, size_t ie_len);
|
D | hostapd.h | 67 const u8 *ie, size_t ie_len, int ssi_signal); 509 const u8 *ie, size_t ie_len, 522 const u8 *bssid, const u8 *ie, size_t ie_len,
|
D | beacon.c | 724 size_t ie_len; in handle_probe_req() local 737 ie_len = len - IEEE80211_HDRLEN; in handle_probe_req() 742 ie, ie_len, ssi_signal) > 0) in handle_probe_req() 748 if (ieee802_11_parse_elems(ie, ie_len, &elems, 0) == ParseFailed) { in handle_probe_req() 785 wps = ieee802_11_vendor_ie_concat(ie, ie_len, WPS_DEV_OUI_WFA); in handle_probe_req() 798 p2p = ieee802_11_vendor_ie_concat(ie, ie_len, P2P_IE_VENDOR_TYPE); in handle_probe_req() 832 taxonomy_sta_info_probe_req(hapd, sta, ie, ie_len); in handle_probe_req() 836 ie, ie_len); in handle_probe_req()
|
D | wnm_ap.c | 212 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/ |
D | p2p_build.c | 478 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/ |
D | bss.c | 431 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 …]
|
D | mesh.h | 28 const u8 *ies, size_t ie_len); 36 const u8 *ies, size_t ie_len) in wpa_mesh_notify_peer() argument
|
D | mesh_mpm.c | 216 u8 ie_len, add_plid = 0; in mesh_mpm_send_plink_action() local 301 ie_len = 4; in mesh_mpm_send_plink_action() 303 ie_len += PMKID_LEN; in mesh_mpm_send_plink_action() 308 ie_len += 2; in mesh_mpm_send_plink_action() 312 ie_len += 2; in mesh_mpm_send_plink_action() 314 ie_len += 2; /* reason code */ in mesh_mpm_send_plink_action() 319 wpabuf_put_u8(buf, ie_len); in mesh_mpm_send_plink_action() 1063 size_t ie_len; in mesh_mpm_action_rx() local 1077 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx() 1081 if (ie_len < 2 + 2) { in mesh_mpm_action_rx() [all …]
|
D | wnm_sta.c | 280 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() 1380 u8 ie, ie_len; in ieee802_11_rx_wnm_notif_req_wfa() local 1387 ie_len = *pos++; in ieee802_11_rx_wnm_notif_req_wfa() 1389 ie, ie_len); in ieee802_11_rx_wnm_notif_req_wfa() 1390 if (ie_len > end - pos) { in ieee802_11_rx_wnm_notif_req_wfa() [all …]
|
D | op_classes.c | 281 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()
|
D | events.c | 2107 const u8 *ie, size_t ie_len) in wpas_fst_update_mbie() argument 2111 if (!ie || !ie_len || !wpa_s->fst) in wpas_fst_update_mbie() 2116 while (ie_len >= 2 && mb_ies.nof_ies < MAX_NOF_MB_IES_SUPPORTED) { in wpas_fst_update_mbie() 2120 if (len > ie_len) { in wpas_fst_update_mbie() 2122 ie, ie_len); in wpas_fst_update_mbie() 2130 mb_ies.ies[mb_ies.nof_ies].ie_len = len - 2; in wpas_fst_update_mbie() 2134 ie_len -= len; in wpas_fst_update_mbie() 2413 iebcn = ieprb + bss->ie_len; in wpas_fst_update_mb_assoc() 2415 if (!wpas_fst_update_mbie(wpa_s, ieprb, bss->ie_len)) in wpas_fst_update_mb_assoc() 3231 const u8 *ie, size_t ie_len, int deauth) in wpas_event_disconnect() argument [all …]
|
D | p2p_supplicant.h | 128 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
|
D | scan.c | 1668 size_t ie_len = res->ie_len; in wpa_scan_get_ie() local 1671 if (!ie_len) in wpa_scan_get_ie() 1672 ie_len = res->beacon_ie_len; in wpa_scan_get_ie() 1674 return get_ie((const u8 *) (res + 1), ie_len, ie); in wpa_scan_get_ie() 1693 end = pos + res->ie_len; in wpa_scan_get_vendor_ie() 1729 pos += res->ie_len; in wpa_scan_get_vendor_ie_beacon() 1761 buf = wpabuf_alloc(res->ie_len); in wpa_scan_get_vendor_ie_multi() 1766 end = pos + res->ie_len; in wpa_scan_get_vendor_ie_multi() 1943 if (r->ie_len) in dump_scan_res() 1944 wpa_hexdump(MSG_EXCESSIVE, "IEs", pos, r->ie_len); in dump_scan_res() [all …]
|
/external/tcpdump/ |
D | print-fr.c | 433 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/ |
D | driver_privsep.c | 192 if (sizeof(*r) + r->ie_len + r->beacon_ie_len > (size_t) len) { in wpa_driver_privsep_get_scan_results2() 195 (int) sizeof(*r), (int) r->ie_len, in wpa_driver_privsep_get_scan_results2() 257 buflen = sizeof(*data) + params->ie_len + params->auth_data_len; in wpa_driver_privsep_authenticate() 267 data->ie_len = params->ie_len; in wpa_driver_privsep_authenticate() 278 if (params->ie_len) { in wpa_driver_privsep_authenticate() 279 os_memcpy(pos, params->ie, params->ie_len); in wpa_driver_privsep_authenticate() 280 pos += params->ie_len; in wpa_driver_privsep_authenticate() 415 int ie_len; in wpa_driver_privsep_event_assoc() local 424 os_memcpy(&ie_len, pos, sizeof(int)); in wpa_driver_privsep_event_assoc() 426 if (ie_len < 0 || ie_len > end - pos) in wpa_driver_privsep_event_assoc() [all …]
|
D | driver_nl80211_scan.c | 650 const u8 *ie, size_t ie_len) in nl80211_scan_filtered() argument 658 ssid = get_ie(ie, ie_len, WLAN_EID_SSID); in nl80211_scan_filtered() 697 size_t ie_len, beacon_ie_len; in nl80211_parse_bss_info() local 709 ie_len = nla_len(bss[NL80211_BSS_INFORMATION_ELEMENTS]); in nl80211_parse_bss_info() 712 ie_len = 0; in nl80211_parse_bss_info() 723 ie ? ie_len : beacon_ie_len)) in nl80211_parse_bss_info() 726 r = os_zalloc(sizeof(*r) + ie_len + beacon_ie_len); in nl80211_parse_bss_info() 757 r->ie_len = ie_len; in nl80211_parse_bss_info() 760 os_memcpy(pos, ie, ie_len); in nl80211_parse_bss_info() 761 pos += ie_len; in nl80211_parse_bss_info()
|
D | driver_wext.c | 1202 size_t ie_len; member 1356 tmp = os_realloc(res->ie, res->ie_len + gend - gpos); in wext_get_scan_iwevgenie() 1359 os_memcpy(tmp + res->ie_len, gpos, gend - gpos); in wext_get_scan_iwevgenie() 1361 res->ie_len += gend - gpos; in wext_get_scan_iwevgenie() 1384 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom() 1388 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom() 1390 res->ie_len += bytes; in wext_get_scan_custom() 1399 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom() 1403 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom() 1405 res->ie_len += bytes; in wext_get_scan_custom() [all …]
|
D | driver_atheros.c | 684 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 …]
|
D | driver.h | 302 size_t ie_len; member 574 size_t ie_len; member 1298 int ie_len; member 4525 size_t ie_len; member 4556 size_t ie_len; member 4845 size_t ie_len; member 5037 size_t ie_len; member
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | tdls.c | 53 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() 737 lnkid->ie_len = 3 * ETH_ALEN; in wpa_tdls_linkid() 809 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_teardown() 815 ftie->ie_len += 170; in wpa_tdls_send_teardown() [all …]
|
/external/wpa_supplicant_8/src/common/ |
D | hw_features_common.c | 154 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()
|
D | privsep_commands.h | 49 size_t ie_len; member
|
D | ieee802_11_common.c | 455 elems->mb_ies.ies[elems->mb_ies.nof_ies].ie_len = elen; in ieee802_11_parse_elems() 1281 info->ies[info->nof_ies].ie_len = ies_buf[1]; in mb_ies_info_by_ies() 1304 mb_ies_size += 2 + info->ies[i].ie_len; in mb_ies_by_info() 1310 wpabuf_put_u8(mb_ies, info->ies[i].ie_len); in mb_ies_by_info() 1313 info->ies[i].ie_len); in mb_ies_by_info()
|