/freebsd/contrib/wpa/src/wps/ |
H A D | wps_dev_attr.c | 116 wpabuf_put_be16(msg, WPS_DEV_TYPE_LEN); in wps_build_primary_dev_type() 117 wpabuf_put_data(msg, dev->pri_dev_type, WPS_DEV_TYPE_LEN); in wps_build_primary_dev_type() 130 wpabuf_put_be16(msg, WPS_DEV_TYPE_LEN * dev->num_sec_dev_types); in wps_build_secondary_dev_type() 132 WPS_DEV_TYPE_LEN * dev->num_sec_dev_types); in wps_build_secondary_dev_type() 146 req_dev_types + i * WPS_DEV_TYPE_LEN, in wps_build_req_dev_type() 147 WPS_DEV_TYPE_LEN); in wps_build_req_dev_type() 149 wpabuf_put_be16(msg, WPS_DEV_TYPE_LEN); in wps_build_req_dev_type() 150 wpabuf_put_data(msg, req_dev_types + i * WPS_DEV_TYPE_LEN, in wps_build_req_dev_type() 151 WPS_DEV_TYPE_LEN); in wps_build_req_dev_type() 367 os_memcpy(dev->pri_dev_type, dev_type, WPS_DEV_TYPE_LEN); in wps_process_primary_dev_type()
|
H A D | wps.h | 60 #define WPS_DEV_TYPE_LEN 8 macro 92 u8 pri_dev_type[WPS_DEV_TYPE_LEN]; 94 u8 sec_dev_type[WPS_SEC_DEVICE_TYPES][WPS_DEV_TYPE_LEN]; 924 int wps_dev_type_str2bin(const char *str, u8 dev_type[WPS_DEV_TYPE_LEN]); 925 char * wps_dev_type_bin2str(const u8 dev_type[WPS_DEV_TYPE_LEN], char *buf,
|
H A D | wps_attr_parse.c | 245 if (len != WPS_DEV_TYPE_LEN) { in wps_set_attr() 550 if (len != WPS_DEV_TYPE_LEN) { in wps_set_attr() 566 (len % WPS_DEV_TYPE_LEN) > 0) { in wps_set_attr()
|
H A D | wps_common.c | 462 int wps_dev_type_str2bin(const char *str, u8 dev_type[WPS_DEV_TYPE_LEN]) in wps_dev_type_str2bin() argument 485 char * wps_dev_type_bin2str(const u8 dev_type[WPS_DEV_TYPE_LEN], char *buf, in wps_dev_type_bin2str() argument
|
H A D | wps_registrar.c | 310 os_memcpy(dst->pri_dev_type, src->pri_dev_type, WPS_DEV_TYPE_LEN); in wps_device_clone_data()
|
/freebsd/contrib/wpa/src/p2p/ |
H A D | p2p_build.c | 231 WPS_DEV_TYPE_LEN); in p2p_buf_add_device_info() 788 if (wpabuf_tailroom(buf) < 4 + WPS_DEV_TYPE_LEN) in p2p_build_wps_ie() 791 wpabuf_put_be16(buf, WPS_DEV_TYPE_LEN); in p2p_build_wps_ie() 792 wpabuf_put_data(buf, p2p->cfg->pri_dev_type, WPS_DEV_TYPE_LEN); in p2p_build_wps_ie() 810 4 + WPS_DEV_TYPE_LEN * p2p->cfg->num_sec_dev_types) in p2p_build_wps_ie() 813 wpabuf_put_be16(buf, WPS_DEV_TYPE_LEN * in p2p_build_wps_ie() 816 WPS_DEV_TYPE_LEN * in p2p_build_wps_ie()
|
H A D | p2p_group.c | 730 if (end - pos < WPS_DEV_TYPE_LEN + 1) in p2p_match_dev_type_member() 742 pos += WPS_DEV_TYPE_LEN; in p2p_match_dev_type_member() 744 if (end - pos < num_sec * WPS_DEV_TYPE_LEN) in p2p_match_dev_type_member() 751 pos += WPS_DEV_TYPE_LEN; in p2p_match_dev_type_member()
|
H A D | p2p.c | 1176 WPS_DEV_TYPE_LEN); in p2p_find() 2139 if (os_memcmp(dev_type, req_dev_type, WPS_DEV_TYPE_LEN) == 0) in dev_type_match()
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers_p2p.c | 139 os_malloc(WPS_DEV_TYPE_LEN * entry.array_len); in wpas_dbus_handler_p2p_find() 145 WPS_DEV_TYPE_LEN) in wpas_dbus_handler_p2p_find() 149 WPS_DEV_TYPE_LEN); in wpas_dbus_handler_p2p_find() 924 WPS_DEV_TYPE_LEN)) in wpas_dbus_getter_p2p_device_config() 942 WPS_DEV_TYPE_LEN); in wpas_dbus_getter_p2p_device_config() 1074 entry.array_len != WPS_DEV_TYPE_LEN) in wpas_dbus_setter_p2p_device_config() 1079 WPS_DEV_TYPE_LEN); in wpas_dbus_setter_p2p_device_config() 1090 WPS_DEV_TYPE_LEN) in wpas_dbus_setter_p2p_device_config() 1095 WPS_DEV_TYPE_LEN); in wpas_dbus_setter_p2p_device_config() 1614 WPS_DEV_TYPE_LEN, error)) { in wpas_dbus_getter_p2p_peer_primary_device_type() [all …]
|
H A D | dbus_new_handlers_wps.c | 758 WPS_DEV_TYPE_LEN, error)) { in wpas_dbus_getter_wps_device_device_type() 796 if (dev_len != WPS_DEV_TYPE_LEN) in wpas_dbus_setter_wps_device_device_type() 799 os_memcpy(wpa_s->conf->device_type, dev_type, WPS_DEV_TYPE_LEN); in wpas_dbus_setter_wps_device_device_type()
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | config.h | 738 u8 device_type[WPS_DEV_TYPE_LEN]; 792 u8 sec_device_type[MAX_SEC_DEVICE_TYPES][WPS_DEV_TYPE_LEN];
|
H A D | wps_supplicant.c | 1599 WPS_DEV_TYPE_LEN); in wpas_wps_init() 1603 WPS_DEV_TYPE_LEN * wps->dev.num_sec_dev_types); in wpas_wps_init() 2249 WPS_DEV_TYPE_LEN); in wpas_wps_update_config() 2254 wps->dev.num_sec_dev_types * WPS_DEV_TYPE_LEN); in wpas_wps_update_config()
|
H A D | p2p_supplicant.c | 2156 os_memcpy(d->device_type, s->device_type, WPS_DEV_TYPE_LEN); in wpas_p2p_clone_config() 4917 WPS_DEV_TYPE_LEN); in wpas_p2p_init() 4921 p2p.num_sec_dev_types * WPS_DEV_TYPE_LEN); in wpas_p2p_init() 10057 WPS_DEV_TYPE_LEN; in wpas_p2p_lo_start() 10061 os_memcpy(device_types, wpa_s->conf->device_type, WPS_DEV_TYPE_LEN); in wpas_p2p_lo_start() 10062 os_memcpy(&device_types[WPS_DEV_TYPE_LEN], wpa_s->conf->sec_device_type, in wpas_p2p_lo_start() 10063 wpa_s->conf->num_sec_device_types * WPS_DEV_TYPE_LEN); in wpas_p2p_lo_start()
|
H A D | ap.c | 736 WPS_DEV_TYPE_LEN); in wpa_supplicant_conf_ap()
|
H A D | ctrl_iface.c | 5681 u8 dev_type[WPS_DEV_TYPE_LEN], *_dev_type = NULL; in p2p_ctrl_find() 7016 for (i = 0; i < info->wps_sec_dev_type_list_len / WPS_DEV_TYPE_LEN; i++) in p2p_ctrl_peer() 7019 t = &info->wps_sec_dev_type_list[i * WPS_DEV_TYPE_LEN]; in p2p_ctrl_peer()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | ap_config.h | 488 u8 device_type[WPS_DEV_TYPE_LEN];
|
H A D | wps_hostapd.c | 1152 WPS_DEV_TYPE_LEN); in hostapd_init_wps()
|