/third_party/wpa_supplicant/wpa_supplicant-2.9/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);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | bss.c | 352 p2p_parse_dev_addr(wpa_bss_ie_ptr(bss), bss->ie_len, addr) == 0 && in is_p2p_pending_bss() 445 bss = os_zalloc(sizeof(*bss) + res->ie_len + res->beacon_ie_len); in wpa_bss_add() 453 bss->ie_len = res->ie_len; in wpa_bss_add() 455 os_memcpy(bss->ies, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_add() 557 if (old->ie_len == new_res->ie_len && in wpa_bss_compare_res() 558 os_memcmp(wpa_bss_ie_ptr(old), new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res() 680 if (bss->ie_len + bss->beacon_ie_len >= in wpa_bss_update() 681 res->ie_len + res->beacon_ie_len) { in wpa_bss_update() 682 os_memcpy(bss->ies, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_update() 683 bss->ie_len = res->ie_len; in wpa_bss_update() [all …]
|
D | wnm_sta.c | 345 u8 ie_len = *(pos + 1); in ieee802_11_rx_wnmsleep_resp() local 346 if (2 + ie_len > frm + len - pos) { in ieee802_11_rx_wnmsleep_resp() 347 wpa_printf(MSG_INFO, "WNM: Invalid IE len %u", ie_len); in ieee802_11_rx_wnmsleep_resp() 350 wpa_hexdump(MSG_DEBUG, "WNM: Element", pos, 2 + ie_len); in ieee802_11_rx_wnmsleep_resp() 351 if (*pos == WLAN_EID_WNMSLEEP && ie_len >= 4) in ieee802_11_rx_wnmsleep_resp() 358 } else if (*pos == WLAN_EID_EXTENSION && ie_len >= 1 && in ieee802_11_rx_wnmsleep_resp() 361 oci_ie_len = ie_len - 1; in ieee802_11_rx_wnmsleep_resp() 365 pos += ie_len + 2; in ieee802_11_rx_wnmsleep_resp() 1669 u8 ie, ie_len; in ieee802_11_rx_wnm_notif_req_wfa() local 1676 ie_len = *pos++; in ieee802_11_rx_wnm_notif_req_wfa() [all …]
|
D | mesh_mpm.c | 218 u8 ie_len, add_plid = 0; in mesh_mpm_send_plink_action() local 321 ie_len = 4; in mesh_mpm_send_plink_action() 323 ie_len += PMKID_LEN; in mesh_mpm_send_plink_action() 328 ie_len += 2; in mesh_mpm_send_plink_action() 332 ie_len += 2; in mesh_mpm_send_plink_action() 334 ie_len += 2; /* reason code */ in mesh_mpm_send_plink_action() 339 wpabuf_put_u8(buf, ie_len); in mesh_mpm_send_plink_action() 1135 size_t ie_len; in mesh_mpm_action_rx() local 1149 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx() 1153 if (ie_len < 2 + 2) { in mesh_mpm_action_rx() [all …]
|
D | mesh.h | 30 const u8 *ies, size_t ie_len); 38 const u8 *ies, size_t ie_len) in wpa_mesh_notify_peer() argument
|
D | op_classes.c | 451 ies_len = bss->ie_len ? bss->ie_len : bss->beacon_ie_len; in wpas_sta_secondary_channel_offset() 463 u8 *ie_len; in wpas_supp_op_class_ie() local 487 ie_len = wpabuf_put(buf, 1); in wpas_supp_op_class_ie() 495 *ie_len = wpabuf_len(buf) - 2; in wpas_supp_op_class_ie() 496 if (*ie_len < 2) { in wpas_supp_op_class_ie()
|
D | rrm.c | 779 size_t *ie_len, int add_fixed) in wpas_beacon_rep_add_frame_body() argument 782 size_t ies_len = *ie_len; in wpas_beacon_rep_add_frame_body() 850 *ie_len = ies_len; in wpas_beacon_rep_add_frame_body() 863 const u8 **ie, size_t *ie_len, u8 idx) in wpas_add_beacon_rep_elem() argument 874 buf = os_malloc(sizeof(*rep) + 14 + *ie_len + subelems_len); in wpas_add_beacon_rep_elem() 882 14 + *ie_len, ie, ie_len, in wpas_add_beacon_rep_elem() 900 if (data->report_detail != BEACON_REPORT_DETAIL_NONE && *ie_len) in wpas_add_beacon_rep_elem() 932 size_t ies_len = bss->ie_len ? bss->ie_len : bss->beacon_ie_len; in wpas_add_beacon_rep()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | bss.c | 436 bss = os_zalloc(sizeof(*bss) + res->ie_len + res->beacon_ie_len); in wpa_bss_add() 444 bss->ie_len = res->ie_len; in wpa_bss_add() 446 os_memcpy(bss + 1, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_add() 548 if (old->ie_len == new_res->ie_len && in wpa_bss_compare_res() 549 os_memcmp(old + 1, new_res + 1, old->ie_len) == 0) in wpa_bss_compare_res() 671 if (bss->ie_len + bss->beacon_ie_len >= in wpa_bss_update() 672 res->ie_len + res->beacon_ie_len) { in wpa_bss_update() 673 os_memcpy(bss + 1, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_update() 674 bss->ie_len = res->ie_len; in wpa_bss_update() 680 nbss = os_realloc(bss, sizeof(*bss) + res->ie_len + in wpa_bss_update() [all …]
|
D | wnm_sta.c | 329 u8 ie_len = *(pos + 1); in ieee802_11_rx_wnmsleep_resp() local 330 if (2 + ie_len > frm + len - pos) { in ieee802_11_rx_wnmsleep_resp() 331 wpa_printf(MSG_INFO, "WNM: Invalid IE len %u", ie_len); in ieee802_11_rx_wnmsleep_resp() 334 wpa_hexdump(MSG_DEBUG, "WNM: Element", pos, 2 + ie_len); in ieee802_11_rx_wnmsleep_resp() 335 if (*pos == WLAN_EID_WNMSLEEP && ie_len >= 4) in ieee802_11_rx_wnmsleep_resp() 342 } else if (*pos == WLAN_EID_EXTENSION && ie_len >= 1 && in ieee802_11_rx_wnmsleep_resp() 345 oci_ie_len = ie_len - 1; in ieee802_11_rx_wnmsleep_resp() 349 pos += ie_len + 2; in ieee802_11_rx_wnmsleep_resp() 1641 u8 ie, ie_len; in ieee802_11_rx_wnm_notif_req_wfa() local 1648 ie_len = *pos++; in ieee802_11_rx_wnm_notif_req_wfa() [all …]
|
D | mesh_mpm.c | 218 u8 ie_len, add_plid = 0; in mesh_mpm_send_plink_action() local 319 ie_len = 4; in mesh_mpm_send_plink_action() 321 ie_len += PMKID_LEN; in mesh_mpm_send_plink_action() 326 ie_len += 2; in mesh_mpm_send_plink_action() 330 ie_len += 2; in mesh_mpm_send_plink_action() 332 ie_len += 2; /* reason code */ in mesh_mpm_send_plink_action() 337 wpabuf_put_u8(buf, ie_len); in mesh_mpm_send_plink_action() 1127 size_t ie_len; in mesh_mpm_action_rx() local 1141 ie_len = (const u8 *) mgmt + len - in mesh_mpm_action_rx() 1145 if (ie_len < 2 + 2) { in mesh_mpm_action_rx() [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 | op_classes.c | 343 u8 *ie_len; in wpas_supp_op_class_ie() local 365 ie_len = wpabuf_put(buf, 1); in wpas_supp_op_class_ie() 373 *ie_len = wpabuf_len(buf) - 2; in wpas_supp_op_class_ie() 374 if (*ie_len < 2 || wpabuf_len(buf) > len) { in wpas_supp_op_class_ie()
|
D | rrm.c | 760 size_t *ie_len, int add_fixed) in wpas_beacon_rep_add_frame_body() argument 763 size_t ies_len = *ie_len; in wpas_beacon_rep_add_frame_body() 831 *ie_len = ies_len; in wpas_beacon_rep_add_frame_body() 844 u8 **ie, size_t *ie_len, u8 idx) in wpas_add_beacon_rep_elem() argument 855 buf = os_malloc(sizeof(*rep) + 14 + *ie_len + subelems_len); in wpas_add_beacon_rep_elem() 863 14 + *ie_len, ie, ie_len, in wpas_add_beacon_rep_elem() 881 if (data->report_detail != BEACON_REPORT_DETAIL_NONE && *ie_len) in wpas_add_beacon_rep_elem() 913 size_t ies_len = bss->ie_len ? bss->ie_len : bss->beacon_ie_len; in wpas_add_beacon_rep()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_privsep.c | 191 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 …]
|
D | driver_nl80211_scan.c | 671 const u8 *ie, size_t ie_len) in nl80211_scan_filtered() argument 679 ssid = get_ie(ie, ie_len, WLAN_EID_SSID); in nl80211_scan_filtered() 719 size_t ie_len, beacon_ie_len; in nl80211_parse_bss_info() local 731 ie_len = nla_len(bss[NL80211_BSS_INFORMATION_ELEMENTS]); in nl80211_parse_bss_info() 734 ie_len = 0; in nl80211_parse_bss_info() 745 ie ? ie_len : beacon_ie_len)) in nl80211_parse_bss_info() 748 r = os_zalloc(sizeof(*r) + ie_len + beacon_ie_len); in nl80211_parse_bss_info() 796 r->ie_len = ie_len; in nl80211_parse_bss_info() 799 os_memcpy(pos, ie, ie_len); in nl80211_parse_bss_info() 800 pos += ie_len; in nl80211_parse_bss_info()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_privsep.c | 191 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() 262 buflen = sizeof(*data) + params->ie_len + params->auth_data_len; in wpa_driver_privsep_authenticate() 272 data->ie_len = params->ie_len; in wpa_driver_privsep_authenticate() 283 if (params->ie_len) { in wpa_driver_privsep_authenticate() 284 os_memcpy(pos, params->ie, params->ie_len); in wpa_driver_privsep_authenticate() 285 pos += params->ie_len; in wpa_driver_privsep_authenticate() 420 int ie_len; in wpa_driver_privsep_event_assoc() local 429 os_memcpy(&ie_len, pos, sizeof(int)); in wpa_driver_privsep_event_assoc() 431 if (ie_len < 0 || ie_len > end - pos) in wpa_driver_privsep_event_assoc() [all …]
|
D | driver_nl80211_scan.c | 674 const u8 *ie, size_t ie_len) in nl80211_scan_filtered() argument 682 ssid = get_ie(ie, ie_len, WLAN_EID_SSID); in nl80211_scan_filtered() 722 size_t ie_len, beacon_ie_len; in nl80211_parse_bss_info() local 734 ie_len = nla_len(bss[NL80211_BSS_INFORMATION_ELEMENTS]); in nl80211_parse_bss_info() 737 ie_len = 0; in nl80211_parse_bss_info() 748 ie ? ie_len : beacon_ie_len)) in nl80211_parse_bss_info() 751 r = os_zalloc(sizeof(*r) + ie_len + beacon_ie_len); in nl80211_parse_bss_info() 799 r->ie_len = ie_len; in nl80211_parse_bss_info() 802 os_memcpy(pos, ie, ie_len); in nl80211_parse_bss_info() 803 pos += ie_len; in nl80211_parse_bss_info()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/ |
D | tdls.c | 54 u8 ie_len; member 64 u8 ie_len; member 71 u8 ie_len; member 84 static u8 * wpa_add_tdls_timeoutie(u8 *pos, u8 *ie, size_t ie_len, u32 tsecs); 171 static u8 * wpa_add_ie(u8 *pos, const u8 *ie, size_t ie_len) in wpa_add_ie() argument 173 os_memcpy(pos, ie, ie_len); in wpa_add_ie() 174 return pos + ie_len; in wpa_add_ie() 735 lnkid->ie_len = 3 * ETH_ALEN; in wpa_tdls_linkid() 807 ftie->ie_len = sizeof(struct wpa_tdls_ftie) - 2; in wpa_tdls_send_teardown() 813 ftie->ie_len += 170; in wpa_tdls_send_teardown() [all …]
|