/hostap-3.7.0/src/common/ |
D | ieee802_11_common.c | 364 const struct element *elem; in ieee802_11_parse_elems() local 372 for_each_element(elem, start, len) { in ieee802_11_parse_elems() 373 u8 id = elem->id, elen = elem->datalen; in ieee802_11_parse_elems() 374 const u8 *pos = elem->data; in ieee802_11_parse_elems() 603 if (!for_each_element_completed(elem, start, len)) { in ieee802_11_parse_elems() 607 (int) (start + len - (const u8 *) elem)); in ieee802_11_parse_elems() 620 const struct element *elem; in ieee802_11_ie_count() local 626 for_each_element(elem, ies, ies_len) in ieee802_11_ie_count() 637 const struct element *elem, *found = NULL; in ieee802_11_vendor_ie_concat() local 639 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, ies_len) { in ieee802_11_vendor_ie_concat() [all …]
|
/hostap-3.7.0/wpa_supplicant/ |
D | bss.c | 141 struct wpa_bss_anqp_elem *elem; in wpa_bss_anqp_free() local 164 while ((elem = dl_list_first(&anqp->anqp_elems, in wpa_bss_anqp_free() 166 dl_list_del(&elem->list); in wpa_bss_anqp_free() 167 wpabuf_free(elem->payload); in wpa_bss_anqp_free() 168 os_free(elem); in wpa_bss_anqp_free() 1184 const struct element *elem; in wpa_bss_get_vendor_ie() local 1188 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, bss->ie_len) { in wpa_bss_get_vendor_ie() 1189 if (elem->datalen >= 4 && in wpa_bss_get_vendor_ie() 1190 vendor_type == WPA_GET_BE32(elem->data)) in wpa_bss_get_vendor_ie() 1191 return &elem->id; in wpa_bss_get_vendor_ie() [all …]
|
D | robust_av.c | 229 static size_t tclas_elem_len(const struct tclas_element *elem) in tclas_elem_len() argument 237 if (elem->classifier_type == 4) { in tclas_elem_len() 246 ip_ver = elem->frame_classifier.type4_param.ip_version; in tclas_elem_len() 262 } else if (elem->classifier_type == 10) { in tclas_elem_len() 265 2 * elem->frame_classifier.type10_param.filter_len; in tclas_elem_len() 268 __func__, elem->classifier_type); in tclas_elem_len() 449 void free_up_tclas_elem(struct scs_desc_elem *elem) in free_up_tclas_elem() argument 451 struct tclas_element *tclas_elems = elem->tclas_elems; in free_up_tclas_elem() 452 unsigned int num_tclas_elem = elem->num_tclas_elem; in free_up_tclas_elem() 456 elem->tclas_elems = NULL; in free_up_tclas_elem() [all …]
|
D | interworking.c | 2856 struct wpa_bss_anqp_elem *tmp, *elem = NULL; in anqp_add_extra() local 2864 elem = tmp; in anqp_add_extra() 2869 if (!elem) { in anqp_add_extra() 2870 elem = os_zalloc(sizeof(*elem)); in anqp_add_extra() 2871 if (!elem) in anqp_add_extra() 2873 elem->infoid = info_id; in anqp_add_extra() 2874 dl_list_add(&anqp->anqp_elems, &elem->list); in anqp_add_extra() 2876 wpabuf_free(elem->payload); in anqp_add_extra() 2879 elem->protected_response = protected_response; in anqp_add_extra() 2880 elem->payload = wpabuf_alloc_copy(data, slen); in anqp_add_extra() [all …]
|
D | rrm.c | 658 const u8 *elem; in wpas_beacon_request_freqs() local 662 elem = wpa_bss_get_ie(wpa_s->current_bss, WLAN_EID_COUNTRY); in wpas_beacon_request_freqs() 663 if (elem && elem[1] >= 2) in wpas_beacon_request_freqs() 664 country = (const char *) (elem + 2); in wpas_beacon_request_freqs()
|
D | scan.c | 1956 const struct element *elem; in wpa_scan_get_vendor_ie() local 1960 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, res->ie_len) { in wpa_scan_get_vendor_ie() 1961 if (elem->datalen >= 4 && in wpa_scan_get_vendor_ie() 1962 vendor_type == WPA_GET_BE32(elem->data)) in wpa_scan_get_vendor_ie() 1963 return &elem->id; in wpa_scan_get_vendor_ie() 1986 const struct element *elem; in wpa_scan_get_vendor_ie_beacon() local 1994 for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, in wpa_scan_get_vendor_ie_beacon() 1996 if (elem->datalen >= 4 && in wpa_scan_get_vendor_ie_beacon() 1997 vendor_type == WPA_GET_BE32(elem->data)) in wpa_scan_get_vendor_ie_beacon() 1998 return &elem->id; in wpa_scan_get_vendor_ie_beacon()
|
D | wnm_sta.c | 542 const u8 *elem = wpa_bss_get_ie(bss, WLAN_EID_COUNTRY); in wnm_nei_get_chan() local 544 if (elem && elem[1] >= 2) in wnm_nei_get_chan() 545 country = (const char *) (elem + 2); in wnm_nei_get_chan()
|
D | ctrl_iface.c | 5262 struct wpa_bss_anqp_elem *elem; in print_bss_info() local 5300 dl_list_for_each(elem, &anqp->anqp_elems, in print_bss_info() 5305 elem->infoid); in print_bss_info() 5306 pos = anqp_add_hex(pos, end, title, elem->payload); in print_bss_info() 5307 if (elem->protected_response) { in print_bss_info() 5310 elem->infoid); in print_bss_info() 11128 static int scs_parse_type4(struct tclas_element *elem, const char *pos) in scs_parse_type4() argument 11137 os_memcpy(&elem->frame_classifier.type4_param, in scs_parse_type4() 11143 static int scs_parse_type10(struct tclas_element *elem, const char *pos) in scs_parse_type10() argument 11152 os_memcpy(&elem->frame_classifier.type10_param, in scs_parse_type10() [all …]
|
D | wpa_supplicant_i.h | 1823 const u8 *elem, size_t len); 1872 void free_up_tclas_elem(struct scs_desc_elem *elem);
|
D | wpa_supplicant.c | 8379 const u8 *elem, size_t len) in wpas_vendor_elem_remove() argument 8389 if (os_memcmp(ie, elem, len) != 0) in wpas_vendor_elem_remove()
|
/hostap-3.7.0/src/ap/ |
D | gas_serv.c | 198 struct anqp_element *elem; in get_anqp_elem() local 200 dl_list_for_each(elem, &hapd->conf->anqp_elem, struct anqp_element, in get_anqp_elem() 202 if (elem->infoid == infoid) in get_anqp_elem() 203 return elem; in get_anqp_elem() 213 struct anqp_element *elem; in anqp_add_elem() local 215 elem = get_anqp_elem(hapd, infoid); in anqp_add_elem() 216 if (!elem) in anqp_add_elem() 218 if (wpabuf_tailroom(buf) < 2 + 2 + wpabuf_len(elem->payload)) { in anqp_add_elem() 225 wpabuf_put_le16(buf, wpabuf_len(elem->payload)); in anqp_add_elem() 226 wpabuf_put_buf(buf, elem->payload); in anqp_add_elem() [all …]
|
D | ap_config.c | 694 struct anqp_element *elem; in hostapd_config_free_anqp_elem() local 696 while ((elem = dl_list_first(&conf->anqp_elem, struct anqp_element, in hostapd_config_free_anqp_elem() 698 dl_list_del(&elem->list); in hostapd_config_free_anqp_elem() 699 wpabuf_free(elem->payload); in hostapd_config_free_anqp_elem() 700 os_free(elem); in hostapd_config_free_anqp_elem()
|
D | ap_drv_ops.c | 472 int hostapd_set_generic_elem(struct hostapd_data *hapd, const u8 *elem, in hostapd_set_generic_elem() argument 477 return hapd->driver->set_generic_elem(hapd->drv_priv, elem, elem_len); in hostapd_set_generic_elem()
|
D | ap_drv_ops.h | 50 int hostapd_set_generic_elem(struct hostapd_data *hapd, const u8 *elem,
|
D | wpa_auth.c | 3347 const u8 *elem; in replace_ie() local 3357 elem = get_ie(buf, *len, eid); in replace_ie() 3358 if (elem) { in replace_ie() 3359 u8 elem_len = 2 + elem[1]; in replace_ie() 3361 os_memmove((void *) elem, elem + elem_len, in replace_ie() 3362 *len - (elem - buf) - elem_len); in replace_ie()
|
/hostap-3.7.0/src/p2p/ |
D | p2p.h | 2293 int p2p_set_wfd_dev_info(struct p2p_data *p2p, const struct wpabuf *elem); 2294 int p2p_set_wfd_r2_dev_info(struct p2p_data *p2p, const struct wpabuf *elem); 2295 int p2p_set_wfd_assoc_bssid(struct p2p_data *p2p, const struct wpabuf *elem); 2297 const struct wpabuf *elem);
|
D | p2p.c | 5142 int p2p_set_wfd_dev_info(struct p2p_data *p2p, const struct wpabuf *elem) in p2p_set_wfd_dev_info() argument 5145 if (elem) { in p2p_set_wfd_dev_info() 5146 p2p->wfd_dev_info = wpabuf_dup(elem); in p2p_set_wfd_dev_info() 5156 int p2p_set_wfd_r2_dev_info(struct p2p_data *p2p, const struct wpabuf *elem) in p2p_set_wfd_r2_dev_info() argument 5159 if (elem) { in p2p_set_wfd_r2_dev_info() 5160 p2p->wfd_r2_dev_info = wpabuf_dup(elem); in p2p_set_wfd_r2_dev_info() 5170 int p2p_set_wfd_assoc_bssid(struct p2p_data *p2p, const struct wpabuf *elem) in p2p_set_wfd_assoc_bssid() argument 5173 if (elem) { in p2p_set_wfd_assoc_bssid() 5174 p2p->wfd_assoc_bssid = wpabuf_dup(elem); in p2p_set_wfd_assoc_bssid() 5185 const struct wpabuf *elem) in p2p_set_wfd_coupled_sink_info() argument [all …]
|
/hostap-3.7.0/wpa_supplicant/dbus/ |
D | dbus_dict_helpers.h | 72 const char *elem);
|
D | dbus_dict_helpers.c | 414 const char *elem) in wpa_dbus_dict_string_array_add_element() argument 416 if (!iter_array || !elem) in wpa_dbus_dict_string_array_add_element() 420 &elem); in wpa_dbus_dict_string_array_add_element()
|
D | dbus_new_handlers.c | 5743 const u8 *elem; in wpas_dbus_handler_vendor_elem_get() local 5766 elem = wpabuf_head_u8(wpa_s->vendor_elem[frame_id]); in wpas_dbus_handler_vendor_elem_get() 5773 &elem, elem_len) || in wpas_dbus_handler_vendor_elem_get()
|
/hostap-3.7.0/src/crypto/ |
D | crypto_openssl.c | 1894 EC_POINT *elem; in crypto_ec_point_from_bin() local 1902 elem = EC_POINT_new(e->group); in crypto_ec_point_from_bin() 1903 if (x == NULL || y == NULL || elem == NULL) { in crypto_ec_point_from_bin() 1906 EC_POINT_clear_free(elem); in crypto_ec_point_from_bin() 1910 if (!EC_POINT_set_affine_coordinates_GFp(e->group, elem, x, y, in crypto_ec_point_from_bin() 1912 EC_POINT_clear_free(elem); in crypto_ec_point_from_bin() 1913 elem = NULL; in crypto_ec_point_from_bin() 1919 return (struct crypto_ec_point *) elem; in crypto_ec_point_from_bin()
|
/hostap-3.7.0/src/drivers/ |
D | driver_hostap.c | 747 const u8 *elem, size_t elem_len) in hostap_set_generic_elem() argument 754 if (elem) { in hostap_set_generic_elem() 755 drv->generic_ie = os_memdup(elem, elem_len); in hostap_set_generic_elem()
|
D | driver.h | 3122 int (*set_generic_elem)(void *priv, const u8 *elem, size_t elem_len);
|
/hostap-3.7.0/hostapd/ |
D | config_file.c | 1606 struct anqp_element *elem; in parse_anqp_elem() local 1625 dl_list_for_each(elem, &bss->anqp_elem, struct anqp_element, list) { in parse_anqp_elem() 1626 if (elem->infoid == infoid) { in parse_anqp_elem() 1628 wpabuf_free(elem->payload); in parse_anqp_elem() 1629 elem->payload = payload; in parse_anqp_elem() 1635 elem = os_zalloc(sizeof(*elem)); in parse_anqp_elem() 1636 if (!elem) { in parse_anqp_elem() 1640 elem->infoid = infoid; in parse_anqp_elem() 1641 elem->payload = payload; in parse_anqp_elem() 1642 dl_list_add(&bss->anqp_elem, &elem->list); in parse_anqp_elem()
|
/hostap-3.7.0/tests/hwsim/ |
D | test_scan.py | 1579 elem = struct.pack('BBB', 71, 1 + len(profiles), max_bssid_indic) + profiles 1580 return binascii.hexlify(elem).decode()
|