Home
last modified time | relevance | path

Searched refs:WPS_DEV_TYPE_LEN (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/wpa/src/wps/
H A Dwps_dev_attr.c116 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 Dwps.h60 #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 Dwps_attr_parse.c245 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 Dwps_common.c462 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 Dwps_registrar.c310 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 Dp2p_build.c231 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 Dp2p_group.c730 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 Dp2p.c1176 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 Ddbus_new_handlers_p2p.c139 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 Ddbus_new_handlers_wps.c758 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 Dconfig.h738 u8 device_type[WPS_DEV_TYPE_LEN];
792 u8 sec_device_type[MAX_SEC_DEVICE_TYPES][WPS_DEV_TYPE_LEN];
H A Dwps_supplicant.c1599 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 Dp2p_supplicant.c2156 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 Dap.c736 WPS_DEV_TYPE_LEN); in wpa_supplicant_conf_ap()
H A Dctrl_iface.c5681 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 Dap_config.h488 u8 device_type[WPS_DEV_TYPE_LEN];
H A Dwps_hostapd.c1152 WPS_DEV_TYPE_LEN); in hostapd_init_wps()