/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_build.c | 28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey && in wps_build_public_key() 41 } else if ((wps->dev_pw_id >= 0x10 || in wps_build_public_key() 42 wps->dev_pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) && in wps_build_public_key() 47 wps->dev_pw_id == DEV_PW_NFC_CONNECTION_HANDOVER)) && in wps_build_public_key() 48 (wps->dev_pw_id == wps->wps->ap_nfc_dev_pw_id || in wps_build_public_key() 404 int wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, in wps_build_oob_dev_pw() argument 413 dev_pw_id); in wps_build_oob_dev_pw() 432 wpabuf_put_be16(msg, dev_pw_id); in wps_build_oob_dev_pw()
|
D | wps.c | 53 data->dev_pw_id = cfg->dev_pw_id; in wps_init() 67 cfg->dev_pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) in wps_init() 68 data->dev_pw_id = cfg->dev_pw_id; in wps_init() 72 data->alt_dev_pw_id = data->dev_pw_id; in wps_init() 76 data->dev_pw_id = cfg->wps->ap_nfc_dev_pw_id; in wps_init() 95 data->dev_pw_id = DEV_PW_PUSHBUTTON; in wps_init()
|
D | wps_i.h | 72 u16 dev_pw_id; member 174 int wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, 209 u16 dev_pw_id);
|
D | wps_registrar.c | 1379 } else if (wps->dev_pw_id >= 0x10 && in wps_get_dev_password() 1380 wps->wps->ap_nfc_dev_pw_id == wps->dev_pw_id && in wps_get_dev_password() 1389 if (pin && wps->dev_pw_id >= 0x10) { in wps_get_dev_password() 1395 wps->dev_pw_id = DEV_PW_DEFAULT; in wps_get_dev_password() 1845 wps_build_dev_password_id(msg, wps->dev_pw_id) || in wps_build_m2() 2186 wps->dev_pw_id = WPA_GET_BE16(pw_id); in wps_process_dev_password_id() 2187 wpa_printf(MSG_DEBUG, "WPS: Device Password ID %d", wps->dev_pw_id); in wps_process_dev_password_id() 2608 if (wps->dev_pw_id < 0x10 && in wps_process_m1() 2609 wps->dev_pw_id != DEV_PW_DEFAULT && in wps_process_m1() 2610 wps->dev_pw_id != DEV_PW_P2PS_DEFAULT && in wps_process_m1() [all …]
|
D | wps_enrollee.c | 152 wps_build_dev_password_id(msg, wps->dev_pw_id) || in wps_build_m1() 889 static int wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) in wps_process_dev_pw_id() argument 893 if (dev_pw_id == NULL) { in wps_process_dev_pw_id() 898 id = WPA_GET_BE16(dev_pw_id); in wps_process_dev_pw_id() 899 if (wps->dev_pw_id == id) { in wps_process_dev_pw_id() 906 wps->dev_pw_id == DEV_PW_REGISTRAR_SPECIFIED) || in wps_process_dev_pw_id() 908 wps->dev_pw_id == DEV_PW_DEFAULT)) { in wps_process_dev_pw_id() 923 "ID from %u to %u", wps->dev_pw_id, id); in wps_process_dev_pw_id() 925 if (wps->dev_pw_id == DEV_PW_PUSHBUTTON && id == DEV_PW_DEFAULT) { in wps_process_dev_pw_id() 934 wps->dev_pw_id = wps->alt_dev_pw_id; in wps_process_dev_pw_id()
|
D | wps.h | 166 u16 dev_pw_id; member 878 struct wpabuf * wps_build_nfc_pw_token(u16 dev_pw_id,
|
D | wps_common.c | 412 struct wpabuf * wps_build_nfc_pw_token(u16 dev_pw_id, in wps_build_nfc_pw_token() argument 422 if (wps_build_oob_dev_pw(data, dev_pw_id, pubkey, in wps_build_nfc_pw_token()
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_invitation.c | 21 int dev_pw_id) in p2p_build_invitation_req() argument 99 if (dev_pw_id >= 0) { in p2p_build_invitation_req() 101 p2p_build_wps_ie(p2p, buf, dev_pw_id, 0); in p2p_build_invitation_req() 566 const u8 *go_dev_addr, int dev_pw_id) in p2p_invite_send() argument 581 req = p2p_build_invitation_req(p2p, dev, go_dev_addr, dev_pw_id); in p2p_invite_send() 651 int persistent_group, unsigned int pref_freq, int dev_pw_id) in p2p_invite() argument 669 if (dev_pw_id >= 0) { in p2p_invite() 671 dev_pw_id); in p2p_invite() 673 p2p->invite_dev_pw_id = dev_pw_id; in p2p_invite() 718 return p2p_invite_send(p2p, dev, go_dev_addr, dev_pw_id); in p2p_invite()
|
D | p2p.h | 933 int dev_pw_id); 1447 int persistent_group, unsigned int pref_freq, int dev_pw_id); 2339 void p2p_set_authorized_oob_dev_pw_id(struct p2p_data *p2p, u16 dev_pw_id,
|
D | p2p_i.h | 843 const u8 *go_dev_addr, int dev_pw_id);
|
D | p2p.c | 5464 void p2p_set_authorized_oob_dev_pw_id(struct p2p_data *p2p, u16 dev_pw_id, in p2p_set_authorized_oob_dev_pw_id() argument 5469 p2p->authorized_oob_dev_pw_id = dev_pw_id; in p2p_set_authorized_oob_dev_pw_id() 5470 if (dev_pw_id == 0) { in p2p_set_authorized_oob_dev_pw_id() 5476 dev_pw_id); in p2p_set_authorized_oob_dev_pw_id()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wps_supplicant.c | 1181 const char *pin, int p2p_group, u16 dev_pw_id, in wpas_wps_start_dev_pw() argument 1248 pin, dev_pw_id, hash); in wpas_wps_start_dev_pw() 1249 else if (pin == NULL && dev_pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) { in wpas_wps_start_dev_pw() 1251 dev_pw_id, hash); in wpas_wps_start_dev_pw() 1258 rpin, dev_pw_id, hash); in wpas_wps_start_dev_pw() 1275 const char *pin, int p2p_group, u16 dev_pw_id) in wpas_wps_start_pin() argument 1279 dev_pw_id, NULL, NULL, 0, 0); in wpas_wps_start_pin() 2284 const struct wpabuf *dev_pw, u16 dev_pw_id, in wpas_wps_start_nfc() argument 2291 if (dev_pw_id != DEV_PW_NFC_CONNECTION_HANDOVER && dev_pw == NULL) { in wpas_wps_start_nfc() 2293 dev_pw_id = wpa_s->conf->wps_nfc_dev_pw_id; in wpas_wps_start_nfc() [all …]
|
D | wps_supplicant.h | 35 const char *pin, int p2p_group, u16 dev_pw_id); 72 const struct wpabuf *dev_pw, u16 dev_pw_id,
|
D | p2p_supplicant.c | 1661 u16 dev_pw_id = DEV_PW_DEFAULT; in wpas_start_wps_enrollee() local 1663 dev_pw_id = DEV_PW_P2PS_DEFAULT; in wpas_start_wps_enrollee() 1665 dev_pw_id = DEV_PW_REGISTRAR_SPECIFIED; in wpas_start_wps_enrollee() 1667 wpa_s->p2p_pin, 1, dev_pw_id); in wpas_start_wps_enrollee() 2860 int dev_pw_id) in wpas_invitation_process() argument 2882 if (dev_pw_id >= 0 && wpa_s->p2p_nfc_tag_enabled && in wpas_invitation_process() 2883 dev_pw_id == wpa_s->p2p_oob_dev_pw_id) { in wpas_invitation_process()
|
/external/wpa_supplicant_8/src/ap/ |
D | wps_hostapd.c | 1873 u16 dev_pw_id; in hostapd_wps_nfc_report_handover() local 1935 dev_pw_id = WPA_GET_BE16(attr.oob_dev_password + in hostapd_wps_nfc_report_handover() 1937 if (dev_pw_id != DEV_PW_NFC_CONNECTION_HANDOVER) { in hostapd_wps_nfc_report_handover() 1939 "%u in Wi-Fi Handover Request Message", dev_pw_id); in hostapd_wps_nfc_report_handover()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_wsc.c | 217 cfg.dev_pw_id = id; in eap_wsc_init()
|