/hostap-latest/tests/hwsim/ |
D | test_p2p_messages.py | 84 def p2p_attr_device_info(addr, name="Test", config_methods=0, dev_type="00010050F2040001"): argument 89 …return struct.pack("<BH6B", *t) + struct.pack(">H", config_methods) + struct.pack("8BB", *t2) + st… 243 attrs += p2p_attr_device_info(src, config_methods=0x0108) 263 attrs += p2p_attr_device_info(src, config_methods=0x0108, 602 attrs += p2p_attr_device_info(src, config_methods=0x0108) 624 attrs += p2p_attr_device_info(src, config_methods=0x0108) 643 attrs += p2p_attr_device_info(src, config_methods=0x0108) 659 attrs += p2p_attr_device_info(src, config_methods=0x0108) 675 attrs += p2p_attr_device_info(src, config_methods=0x0108) 691 attrs += p2p_attr_device_info(src, config_methods=0x0108) [all …]
|
/hostap-latest/wpa_supplicant/wpa_gui-qt4/ |
D | peers.cpp | 186 int config_methods = -1; in context_menu() local 189 config_methods = var.toInt(); in context_menu() 201 (config_methods == -1 || (config_methods & 0x010c))) { in context_menu() 210 config_methods > -1 && in context_menu() 211 config_methods & 0x0080 /* PBC */ && in context_menu() 212 config_methods != 0x0080) in context_menu() 222 if (config_methods > -1 && (config_methods & 0x0100)) { in context_menu() 228 if (config_methods > -1 && (config_methods & 0x000c)) { in context_menu() 268 config_methods >= 0 && (config_methods & 0x0080)) { in context_menu() 524 int config_methods = 0; in add_p2p_group_client() local [all …]
|
/hostap-latest/src/p2p/ |
D | p2p_pd.c | 27 u16 config_methods) in p2p_build_wps_ie_config_methods() argument 37 wpabuf_put_be16(buf, config_methods); in p2p_build_wps_ie_config_methods() 96 struct wpabuf *buf, u16 config_methods) in p2ps_add_pd_req_attrs() argument 116 prov->method = config_methods; in p2ps_add_pd_req_attrs() 192 u16 config_methods = dev->req_config_methods; in p2p_build_prov_disc_req() local 230 p2ps_add_pd_req_attrs(p2p, dev, buf, config_methods); in p2p_build_prov_disc_req() 238 p2p_build_wps_ie_config_methods(buf, config_methods); in p2p_build_prov_disc_req() 256 u16 config_methods, in p2p_build_prov_disc_resp() argument 403 p2p_build_wps_ie_config_methods(buf, config_methods); in p2p_build_prov_disc_resp() 583 u16 config_methods; in p2p_process_prov_disc_req() local [all …]
|
D | p2p_build.c | 216 } else if (p2p->cfg->config_methods) { in p2p_buf_add_device_info() 217 methods |= p2p->cfg->config_methods & in p2p_buf_add_device_info() 483 u32 adv_id, u16 config_methods, in p2p_buf_add_service_info() argument 493 info_len = sizeof(adv_id) + sizeof(config_methods) + sizeof(u8) + in p2p_buf_add_service_info() 538 WPA_PUT_BE16(&holder[sizeof(u32)], config_methods); in p2p_buf_add_service_info() 552 wpabuf_put_be16(buf, config_methods); in p2p_buf_add_service_info() 554 remaining -= sizeof(adv_id) + sizeof(config_methods) + in p2p_buf_add_service_info() 654 adv->config_methods, in p2p_buf_add_service_instance() 808 wpabuf_put_be16(buf, p2p->cfg->config_methods); in p2p_build_wps_ie()
|
D | p2p.h | 271 u16 config_methods; member 370 u16 config_methods; member 546 u16 config_methods; member 873 void (*prov_disc_req)(void *ctx, const u8 *peer, u16 config_methods, 890 void (*prov_disc_resp)(void *ctx, const u8 *peer, u16 config_methods); 1199 void p2p_set_config_methods(struct p2p_data *p2p, u16 config_methods); 1387 struct p2ps_provision *p2ps_prov, u16 config_methods, 2389 u16 config_methods, const char *svc_info,
|
D | p2p_parse.c | 166 msg->config_methods = WPA_GET_BE16(pos); in p2p_parse_attribute() 203 msg->device_name, msg->config_methods); in p2p_parse_attribute() 486 if (attr.config_methods) { in p2p_parse_wps_ie() 488 WPA_GET_BE16(attr.config_methods); in p2p_parse_wps_ie() 688 cli->config_methods = WPA_GET_BE16(g); in p2p_group_info_parse() 757 cli->dev_capab, cli->config_methods, in p2p_group_info_text() 852 msg.config_methods); in p2p_attr_text()
|
D | p2p.c | 459 dev->info.config_methods = cli->config_methods; in p2p_copy_client_info() 624 new_config_methods = msg->config_methods ? in p2p_copy_wps_info() 625 msg->config_methods : msg->wps_config_methods; in p2p_copy_wps_info() 627 dev->info.config_methods != new_config_methods) { in p2p_copy_wps_info() 631 dev->info.config_methods, in p2p_copy_wps_info() 633 dev->info.config_methods = new_config_methods; in p2p_copy_wps_info() 898 if (dev->info.config_methods == 0 && in p2p_add_device() 2777 const char *adv_str, u8 svc_state, u16 config_methods, in p2p_service_add_asp() argument 2788 if (!(config_methods & p2p->cfg->config_methods)) { in p2p_service_add_asp() 2790 config_methods, p2p->cfg->config_methods); in p2p_service_add_asp() [all …]
|
/hostap-latest/src/wps/ |
D | wps_validate.c | 128 static int wps_validate_config_methods(const u8 *config_methods, int wps2, in wps_validate_config_methods() argument 133 if (config_methods == NULL) { in wps_validate_config_methods() 142 val = WPA_GET_BE16(config_methods); in wps_validate_config_methods() 152 static int wps_validate_ap_config_methods(const u8 *config_methods, int wps2, in wps_validate_ap_config_methods() argument 157 if (wps_validate_config_methods(config_methods, wps2, mandatory) < 0) in wps_validate_ap_config_methods() 159 if (config_methods == NULL) in wps_validate_ap_config_methods() 161 val = WPA_GET_BE16(config_methods); in wps_validate_ap_config_methods() 500 static int wps_validate_sel_reg_config_methods(const u8 *config_methods, in wps_validate_sel_reg_config_methods() argument 505 if (config_methods == NULL) { in wps_validate_sel_reg_config_methods() 514 val = WPA_GET_BE16(config_methods); in wps_validate_sel_reg_config_methods() [all …]
|
D | wps.h | 98 u16 config_methods; member 348 const u8 *pri_dev_type, u16 config_methods, 536 u16 config_methods; member 593 u16 config_methods; member 706 u16 config_methods; member
|
D | wps_enrollee.c | 107 u16 config_methods; in wps_build_m1() local 120 config_methods = wps->wps->config_methods; in wps_build_m1() 123 (config_methods & WPS_CONFIG_DISPLAY))) { in wps_build_m1() 133 config_methods &= ~WPS_CONFIG_PUSHBUTTON; in wps_build_m1() 134 config_methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON | in wps_build_m1() 150 wps_build_config_methods(msg, config_methods) || in wps_build_m1() 1067 if (attr->config_methods) in wps_process_m2d() 1068 m2d->config_methods = in wps_process_m2d() 1069 WPA_GET_BE16(attr->config_methods); in wps_process_m2d()
|
D | wps.c | 511 wps_build_config_methods(ie, dev->config_methods) || in wps_build_probe_req_ie() 638 if (attr.config_methods) { in wps_attr_text() 641 WPA_GET_BE16(attr.config_methods)); in wps_attr_text()
|
D | wps_registrar.c | 160 const u8 *pri_dev_type, u16 config_methods, 598 methods = reg->wps->config_methods; in wps_build_sel_reg_config_methods() 603 wps_set_pushbutton(&methods, reg->wps->config_methods); in wps_build_sel_reg_config_methods() 623 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON; in wps_build_probe_config_methods() 637 return wps_build_config_methods(msg, reg->wps->config_methods); in wps_build_config_methods_r() 1160 if (attr.config_methods == NULL) { in wps_registrar_probe_req_rx() 1184 WPA_GET_BE16(attr.config_methods), in wps_registrar_probe_req_rx() 1275 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON; in wps_cb_set_sel_reg() 1279 wps_set_pushbutton(&methods, reg->wps->config_methods); in wps_cb_set_sel_reg() 1284 reg->selected_registrar, reg->wps->config_methods, in wps_cb_set_sel_reg() [all …]
|
D | wps_upnp_ap.c | 53 s->config_methods = attr.sel_reg_config_methods ? in upnp_er_set_selected_registrar()
|
D | wps_er.h | 18 u16 config_methods; member
|
D | wps_attr_parse.h | 26 const u8 *config_methods; /* 2 octets */ member
|
D | wps_upnp_i.h | 100 u16 config_methods; member
|
D | wps_er.c | 47 ev->config_methods = sta->config_methods; in wps_er_sta_event() 788 if (attr->config_methods && (!probe_req || !sta->m1_received)) in wps_er_add_sta_data() 789 sta->config_methods = WPA_GET_BE16(attr->config_methods); in wps_er_add_sta_data()
|
/hostap-latest/wpa_supplicant/ |
D | wps_supplicant.c | 801 enrollee->config_methods, enrollee->dev_passwd_id, dev_type, in wpa_supplicant_wps_event_er_enrollee_add() 1513 static u16 wps_fix_config_methods(u16 config_methods) in wps_fix_config_methods() argument 1515 if ((config_methods & in wps_fix_config_methods() 1520 config_methods |= WPS_CONFIG_VIRT_DISPLAY; in wps_fix_config_methods() 1522 if ((config_methods & in wps_fix_config_methods() 1527 config_methods |= WPS_CONFIG_VIRT_PUSHBUTTON; in wps_fix_config_methods() 1530 return config_methods; in wps_fix_config_methods() 1606 wps->config_methods = in wpas_wps_init() 1607 wps_config_methods_str2bin(wpa_s->conf->config_methods); in wpas_wps_init() 1608 if ((wps->config_methods & (WPS_CONFIG_DISPLAY | WPS_CONFIG_LABEL)) == in wpas_wps_init() [all …]
|
D | p2p_supplicant_sd.c | 646 wpabuf_put_be16(resp, adv_data->config_methods); in wpas_sd_req_asp() 821 u16 config_methods; in wpas_sd_p2ps_serv_response() local 841 config_methods = WPA_GET_BE16(pos); in wpas_sd_p2ps_serv_response() 875 svc_status, config_methods, svc_str, in wpas_sd_p2ps_serv_response() 882 svc_status, config_methods, svc_str); in wpas_sd_p2ps_serv_response() 1188 u16 config_methods, const char *svc_info, in wpas_p2p_service_add_asp() argument 1194 adv_str, svc_state, config_methods, in wpas_p2p_service_add_asp()
|
D | notify.h | 124 u16 config_methods,
|
D | notify.c | 741 u16 config_methods, in wpas_notify_p2p_provision_discovery() argument 745 status, config_methods, in wpas_notify_p2p_provision_discovery()
|
D | p2p_supplicant.c | 2181 C(config_methods); in wpas_p2p_clone_config() 2629 info->device_name, info->config_methods, in wpas_dev_found() 2836 static void wpas_prov_disc_req(void *ctx, const u8 *peer, u16 config_methods, in wpas_prov_disc_req() argument 2880 if (config_methods & WPS_CONFIG_DISPLAY) { in wpas_prov_disc_req() 2890 } else if (config_methods & WPS_CONFIG_KEYPAD) in wpas_prov_disc_req() 2892 else if (config_methods & WPS_CONFIG_PUSHBUTTON) in wpas_prov_disc_req() 2898 config_methods, generated_pin); in wpas_prov_disc_req() 2902 static void wpas_prov_disc_resp(void *ctx, const u8 *peer, u16 config_methods) in wpas_prov_disc_resp() argument 2929 if (config_methods & WPS_CONFIG_DISPLAY) in wpas_prov_disc_resp() 2931 else if (config_methods & WPS_CONFIG_KEYPAD) { in wpas_prov_disc_resp() [all …]
|
/hostap-latest/wpa_supplicant/dbus/ |
D | dbus_new_handlers_wps.c | 421 wpa_s->conf->config_methods, in wpas_dbus_getter_config_methods() 451 os_free(wpa_s->conf->config_methods); in wpas_dbus_setter_config_methods() 452 wpa_s->conf->config_methods = new_methods; in wpas_dbus_setter_config_methods()
|
D | dbus_new.h | 212 u16 config_methods, 448 u16 config_methods, in wpas_dbus_signal_p2p_provision_discovery() argument
|
/hostap-latest/src/ap/ |
D | wps_hostapd.c | 254 u16 config_methods, in hostapd_wps_enrollee_seen_cb() argument 270 config_methods, dev_password_id, request_type, dev_name); in hostapd_wps_enrollee_seen_cb() 1136 wps->config_methods = in hostapd_init_wps() 1137 wps_config_methods_str2bin(hapd->conf->config_methods); in hostapd_init_wps() 1138 if ((wps->config_methods & in hostapd_init_wps() 1143 wps->config_methods |= WPS_CONFIG_VIRT_DISPLAY; in hostapd_init_wps() 1145 if ((wps->config_methods & in hostapd_init_wps() 1150 wps->config_methods |= WPS_CONFIG_VIRT_PUSHBUTTON; in hostapd_init_wps()
|