Home
last modified time | relevance | path

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

/src/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];
929 int wps_dev_type_str2bin(const char *str, u8 dev_type[WPS_DEV_TYPE_LEN]);
930 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()
/src/contrib/wpa/src/p2p/
H A Dp2p_build.c237 WPS_DEV_TYPE_LEN); in p2p_buf_add_device_info()
794 if (wpabuf_tailroom(buf) < 4 + WPS_DEV_TYPE_LEN) in p2p_build_wps_ie()
797 wpabuf_put_be16(buf, WPS_DEV_TYPE_LEN); in p2p_build_wps_ie()
798 wpabuf_put_data(buf, p2p->cfg->pri_dev_type, WPS_DEV_TYPE_LEN); in p2p_build_wps_ie()
816 4 + WPS_DEV_TYPE_LEN * p2p->cfg->num_sec_dev_types) in p2p_build_wps_ie()
819 wpabuf_put_be16(buf, WPS_DEV_TYPE_LEN * in p2p_build_wps_ie()
822 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.c1191 WPS_DEV_TYPE_LEN); in p2p_find()
2173 if (os_memcmp(dev_type, req_dev_type, WPS_DEV_TYPE_LEN) == 0) in dev_type_match()
/src/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new_handlers_p2p.c140 os_malloc(WPS_DEV_TYPE_LEN * entry.array_len); in wpas_dbus_handler_p2p_find()
146 WPS_DEV_TYPE_LEN) in wpas_dbus_handler_p2p_find()
148 os_memcpy(req_dev_types + i * WPS_DEV_TYPE_LEN, in wpas_dbus_handler_p2p_find()
150 WPS_DEV_TYPE_LEN); in wpas_dbus_handler_p2p_find()
976 WPS_DEV_TYPE_LEN)) in wpas_dbus_getter_p2p_device_config()
994 WPS_DEV_TYPE_LEN); in wpas_dbus_getter_p2p_device_config()
1126 entry.array_len != WPS_DEV_TYPE_LEN) in wpas_dbus_setter_p2p_device_config()
1131 WPS_DEV_TYPE_LEN); in wpas_dbus_setter_p2p_device_config()
1142 WPS_DEV_TYPE_LEN) in wpas_dbus_setter_p2p_device_config()
1147 WPS_DEV_TYPE_LEN); in wpas_dbus_setter_p2p_device_config()
[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()
/src/contrib/wpa/wpa_supplicant/
H A Dconfig.h788 u8 device_type[WPS_DEV_TYPE_LEN];
842 u8 sec_device_type[MAX_SEC_DEVICE_TYPES][WPS_DEV_TYPE_LEN];
H A Dwps_supplicant.c1618 WPS_DEV_TYPE_LEN); in wpas_wps_init()
1622 WPS_DEV_TYPE_LEN * wps->dev.num_sec_dev_types); in wpas_wps_init()
2285 WPS_DEV_TYPE_LEN); in wpas_wps_update_config()
2290 wps->dev.num_sec_dev_types * WPS_DEV_TYPE_LEN); in wpas_wps_update_config()
H A Dp2p_supplicant.c2184 os_memcpy(d->device_type, s->device_type, WPS_DEV_TYPE_LEN); in wpas_p2p_clone_config()
5030 WPS_DEV_TYPE_LEN); in wpas_p2p_init()
5034 p2p.num_sec_dev_types * WPS_DEV_TYPE_LEN); in wpas_p2p_init()
10194 WPS_DEV_TYPE_LEN; in wpas_p2p_lo_start()
10198 os_memcpy(device_types, wpa_s->conf->device_type, WPS_DEV_TYPE_LEN); in wpas_p2p_lo_start()
10199 os_memcpy(&device_types[WPS_DEV_TYPE_LEN], wpa_s->conf->sec_device_type, in wpas_p2p_lo_start()
10200 wpa_s->conf->num_sec_device_types * WPS_DEV_TYPE_LEN); in wpas_p2p_lo_start()
H A Dap.c777 WPS_DEV_TYPE_LEN); in wpa_supplicant_conf_ap()
H A Dctrl_iface.c6073 u8 dev_type[WPS_DEV_TYPE_LEN], *_dev_type = NULL; in p2p_ctrl_find()
7387 for (i = 0; i < info->wps_sec_dev_type_list_len / WPS_DEV_TYPE_LEN; i++) in p2p_ctrl_peer()
7390 t = &info->wps_sec_dev_type_list[i * WPS_DEV_TYPE_LEN]; in p2p_ctrl_peer()
/src/contrib/wpa/src/ap/
H A Dap_config.h503 u8 device_type[WPS_DEV_TYPE_LEN];
H A Dwps_hostapd.c1153 WPS_DEV_TYPE_LEN); in hostapd_init_wps()