Home
last modified time | relevance | path

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

/hostap-3.7.0/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()
423 int wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id, in wps_build_oob_dev_pw() argument
432 dev_pw_id); in wps_build_oob_dev_pw()
451 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.c1408 } else if (wps->dev_pw_id >= 0x10 && in wps_get_dev_password()
1409 wps->wps->ap_nfc_dev_pw_id == wps->dev_pw_id && in wps_get_dev_password()
1418 if (pin && wps->dev_pw_id >= 0x10) { in wps_get_dev_password()
1424 wps->dev_pw_id = DEV_PW_DEFAULT; in wps_get_dev_password()
1910 wps_build_dev_password_id(msg, wps->dev_pw_id) || in wps_build_m2()
2251 wps->dev_pw_id = WPA_GET_BE16(pw_id); in wps_process_dev_password_id()
2252 wpa_printf(MSG_DEBUG, "WPS: Device Password ID %d", wps->dev_pw_id); in wps_process_dev_password_id()
2673 if (wps->dev_pw_id < 0x10 && in wps_process_m1()
2674 wps->dev_pw_id != DEV_PW_DEFAULT && in wps_process_m1()
2675 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()
904 static int wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) in wps_process_dev_pw_id() argument
908 if (dev_pw_id == NULL) { in wps_process_dev_pw_id()
913 id = WPA_GET_BE16(dev_pw_id); in wps_process_dev_pw_id()
914 if (wps->dev_pw_id == id) { in wps_process_dev_pw_id()
921 wps->dev_pw_id == DEV_PW_REGISTRAR_SPECIFIED) || in wps_process_dev_pw_id()
923 wps->dev_pw_id == DEV_PW_DEFAULT)) { in wps_process_dev_pw_id()
938 "ID from %u to %u", wps->dev_pw_id, id); in wps_process_dev_pw_id()
940 if (wps->dev_pw_id == DEV_PW_PUSHBUTTON && id == DEV_PW_DEFAULT) { in wps_process_dev_pw_id()
949 wps->dev_pw_id = wps->alt_dev_pw_id; in wps_process_dev_pw_id()
Dwps.h168 u16 dev_pw_id; member
929 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()
/hostap-3.7.0/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
670 if (dev_pw_id >= 0) { in p2p_invite()
672 dev_pw_id); in p2p_invite()
674 p2p->invite_dev_pw_id = dev_pw_id; in p2p_invite()
719 return p2p_invite_send(p2p, dev, go_dev_addr, dev_pw_id); in p2p_invite()
Dp2p.h949 int dev_pw_id);
1465 int persistent_group, unsigned int pref_freq, int dev_pw_id);
2365 void p2p_set_authorized_oob_dev_pw_id(struct p2p_data *p2p, u16 dev_pw_id,
Dp2p_i.h842 const u8 *go_dev_addr, int dev_pw_id);
Dp2p.c5488 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
5493 p2p->authorized_oob_dev_pw_id = dev_pw_id; in p2p_set_authorized_oob_dev_pw_id()
5494 if (dev_pw_id == 0) { in p2p_set_authorized_oob_dev_pw_id()
5500 dev_pw_id); in p2p_set_authorized_oob_dev_pw_id()
/hostap-3.7.0/wpa_supplicant/
Dwps_supplicant.c1217 const char *pin, int p2p_group, u16 dev_pw_id, in wpas_wps_start_dev_pw() argument
1289 pin, dev_pw_id, hash); in wpas_wps_start_dev_pw()
1290 else if (pin == NULL && dev_pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) { in wpas_wps_start_dev_pw()
1292 dev_pw_id, hash); in wpas_wps_start_dev_pw()
1299 rpin, dev_pw_id, hash); in wpas_wps_start_dev_pw()
1306 if (dev_pw_id != DEV_PW_NFC_CONNECTION_HANDOVER) in wpas_wps_start_dev_pw()
1320 const char *pin, int p2p_group, u16 dev_pw_id) in wpas_wps_start_pin() argument
1324 dev_pw_id, NULL, NULL, 0, 0); in wpas_wps_start_pin()
2360 const struct wpabuf *dev_pw, u16 dev_pw_id, in wpas_wps_start_nfc() argument
2367 if (dev_pw_id != DEV_PW_NFC_CONNECTION_HANDOVER && dev_pw == NULL) { in wpas_wps_start_nfc()
[all …]
Dwps_supplicant.h35 const char *pin, int p2p_group, u16 dev_pw_id);
71 const struct wpabuf *dev_pw, u16 dev_pw_id,
Dp2p_supplicant.c1732 u16 dev_pw_id = DEV_PW_DEFAULT; in wpas_start_wps_enrollee() local
1734 dev_pw_id = DEV_PW_P2PS_DEFAULT; in wpas_start_wps_enrollee()
1736 dev_pw_id = DEV_PW_REGISTRAR_SPECIFIED; in wpas_start_wps_enrollee()
1738 wpa_s->p2p_pin, 1, dev_pw_id); in wpas_start_wps_enrollee()
3074 int dev_pw_id) in wpas_invitation_process() argument
3096 if (dev_pw_id >= 0 && wpa_s->p2p_nfc_tag_enabled && in wpas_invitation_process()
3097 dev_pw_id == wpa_s->p2p_oob_dev_pw_id) { in wpas_invitation_process()
/hostap-3.7.0/src/ap/
Dwps_hostapd.c2136 u16 dev_pw_id; in hostapd_wps_nfc_report_handover() local
2198 dev_pw_id = WPA_GET_BE16(attr.oob_dev_password + in hostapd_wps_nfc_report_handover()
2200 if (dev_pw_id != DEV_PW_NFC_CONNECTION_HANDOVER) { in hostapd_wps_nfc_report_handover()
2202 "%u in Wi-Fi Handover Request Message", dev_pw_id); in hostapd_wps_nfc_report_handover()
/hostap-3.7.0/src/eap_peer/
Deap_wsc.c217 cfg.dev_pw_id = id; in eap_wsc_init()
/hostap-3.7.0/tests/hwsim/
Dtest_ap_wps.py6666 dev_pw_id='\x00\x00', eap_code=1): argument
6689 attrs += build_wsc_attr(ATTR_DEV_PASSWORD_ID, dev_pw_id)
6695 def build_m2d(m1, eap_id, e_nonce, r_nonce, uuid_r, dev_pw_id=None, eap_code=1): argument
6715 if dev_pw_id:
6716 attrs += build_wsc_attr(ATTR_DEV_PASSWORD_ID, dev_pw_id)
7484 r_nonce, uuid_r, e_pk, dev_pw_id='\x00\x04')
8158 dev_pw_id='\x00\x00', eap_code=2)