Home
last modified time | relevance | path

Searched refs:dev_pw_id (Results 1 – 16 of 16) sorted by relevance

/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c28 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()
414 int wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, in wps_build_oob_dev_pw() argument
423 dev_pw_id); in wps_build_oob_dev_pw()
442 wpabuf_put_be16(msg, dev_pw_id); in wps_build_oob_dev_pw()
Dwps.c53 data->dev_pw_id = cfg->dev_pw_id; in wps_init()
66 cfg->dev_pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) in wps_init()
67 data->dev_pw_id = cfg->dev_pw_id; in wps_init()
71 data->alt_dev_pw_id = data->dev_pw_id; in wps_init()
75 data->dev_pw_id = cfg->wps->ap_nfc_dev_pw_id; in wps_init()
92 data->dev_pw_id = DEV_PW_PUSHBUTTON; in wps_init()
Dwps_i.h72 u16 dev_pw_id; member
177 int wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id,
212 u16 dev_pw_id);
Dwps_registrar.c1430 } else if (wps->dev_pw_id >= 0x10 && in wps_get_dev_password()
1431 wps->wps->ap_nfc_dev_pw_id == wps->dev_pw_id && in wps_get_dev_password()
1440 if (pin && wps->dev_pw_id >= 0x10) { in wps_get_dev_password()
1446 wps->dev_pw_id = DEV_PW_DEFAULT; in wps_get_dev_password()
1919 wps_build_dev_password_id(msg, wps->dev_pw_id) || in wps_build_m2()
2260 wps->dev_pw_id = WPA_GET_BE16(pw_id); in wps_process_dev_password_id()
2261 wpa_printf(MSG_DEBUG, "WPS: Device Password ID %d", wps->dev_pw_id); in wps_process_dev_password_id()
2682 if (wps->dev_pw_id < 0x10 && in wps_process_m1()
2683 wps->dev_pw_id != DEV_PW_DEFAULT && in wps_process_m1()
2684 wps->dev_pw_id != DEV_PW_P2PS_DEFAULT && in wps_process_m1()
[all …]
Dwps_enrollee.c156 wps_build_dev_password_id(msg, wps->dev_pw_id) || in wps_build_m1()
893 static int wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) in wps_process_dev_pw_id() argument
897 if (dev_pw_id == NULL) { in wps_process_dev_pw_id()
902 id = WPA_GET_BE16(dev_pw_id); in wps_process_dev_pw_id()
903 if (wps->dev_pw_id == id) { in wps_process_dev_pw_id()
910 wps->dev_pw_id == DEV_PW_REGISTRAR_SPECIFIED) || in wps_process_dev_pw_id()
912 wps->dev_pw_id == DEV_PW_DEFAULT)) { in wps_process_dev_pw_id()
927 "ID from %u to %u", wps->dev_pw_id, id); in wps_process_dev_pw_id()
929 if (wps->dev_pw_id == DEV_PW_PUSHBUTTON && id == DEV_PW_DEFAULT) { in wps_process_dev_pw_id()
938 wps->dev_pw_id = wps->alt_dev_pw_id; in wps_process_dev_pw_id()
Dwps.h167 u16 dev_pw_id; member
916 struct wpabuf * wps_build_nfc_pw_token(u16 dev_pw_id,
Dwps_common.c412 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/
Dp2p_invitation.c21 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()
Dp2p.h940 int dev_pw_id);
1454 int persistent_group, unsigned int pref_freq, int dev_pw_id);
2351 void p2p_set_authorized_oob_dev_pw_id(struct p2p_data *p2p, u16 dev_pw_id,
Dp2p_i.h859 const u8 *go_dev_addr, int dev_pw_id);
Dp2p.c5529 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
5534 p2p->authorized_oob_dev_pw_id = dev_pw_id; in p2p_set_authorized_oob_dev_pw_id()
5535 if (dev_pw_id == 0) { in p2p_set_authorized_oob_dev_pw_id()
5541 dev_pw_id); in p2p_set_authorized_oob_dev_pw_id()
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c1206 const char *pin, int p2p_group, u16 dev_pw_id, in wpas_wps_start_dev_pw() argument
1273 pin, dev_pw_id, hash); in wpas_wps_start_dev_pw()
1274 else if (pin == NULL && dev_pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) { in wpas_wps_start_dev_pw()
1276 dev_pw_id, hash); in wpas_wps_start_dev_pw()
1283 rpin, dev_pw_id, hash); in wpas_wps_start_dev_pw()
1300 const char *pin, int p2p_group, u16 dev_pw_id) in wpas_wps_start_pin() argument
1304 dev_pw_id, NULL, NULL, 0, 0); in wpas_wps_start_pin()
2312 const struct wpabuf *dev_pw, u16 dev_pw_id, in wpas_wps_start_nfc() argument
2319 if (dev_pw_id != DEV_PW_NFC_CONNECTION_HANDOVER && dev_pw == NULL) { in wpas_wps_start_nfc()
2321 dev_pw_id = wpa_s->conf->wps_nfc_dev_pw_id; in wpas_wps_start_nfc()
[all …]
Dwps_supplicant.h35 const char *pin, int p2p_group, u16 dev_pw_id);
72 const struct wpabuf *dev_pw, u16 dev_pw_id,
Dp2p_supplicant.c1674 u16 dev_pw_id = DEV_PW_DEFAULT; in wpas_start_wps_enrollee() local
1676 dev_pw_id = DEV_PW_P2PS_DEFAULT; in wpas_start_wps_enrollee()
1678 dev_pw_id = DEV_PW_REGISTRAR_SPECIFIED; in wpas_start_wps_enrollee()
1680 wpa_s->p2p_pin, 1, dev_pw_id); in wpas_start_wps_enrollee()
2918 int dev_pw_id) in wpas_invitation_process() argument
2940 if (dev_pw_id >= 0 && wpa_s->p2p_nfc_tag_enabled && in wpas_invitation_process()
2941 dev_pw_id == wpa_s->p2p_oob_dev_pw_id) { in wpas_invitation_process()
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c1941 u16 dev_pw_id; in hostapd_wps_nfc_report_handover() local
2003 dev_pw_id = WPA_GET_BE16(attr.oob_dev_password + in hostapd_wps_nfc_report_handover()
2005 if (dev_pw_id != DEV_PW_NFC_CONNECTION_HANDOVER) { in hostapd_wps_nfc_report_handover()
2007 "%u in Wi-Fi Handover Request Message", dev_pw_id); in hostapd_wps_nfc_report_handover()
/external/wpa_supplicant_8/src/eap_peer/
Deap_wsc.c217 cfg.dev_pw_id = id; in eap_wsc_init()