Home
last modified time | relevance | path

Searched refs:wps (Results 1 – 25 of 65) sorted by relevance

123

/external/wpa_supplicant_8/src/wps/
Dwps_enrollee.c19 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) in wps_build_wps_state() argument
22 if (wps->wps->ap) in wps_build_wps_state()
23 state = wps->wps->wps_state; in wps_build_wps_state()
35 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) in wps_build_e_hash() argument
41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash()
43 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN); in wps_build_e_hash()
45 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); in wps_build_e_hash()
47 if (wps->dh_pubkey_e == NULL || wps->dh_pubkey_r == NULL) { in wps_build_e_hash()
58 addr[0] = wps->snonce; in wps_build_e_hash()
60 addr[1] = wps->psk1; in wps_build_e_hash()
[all …]
Dwps_registrar.c143 struct wps_context *wps; member
478 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg) in wps_build_wps_state() argument
481 wps->wps_state); in wps_build_wps_state()
484 wpabuf_put_u8(msg, wps->wps_state); in wps_build_wps_state()
490 static void wps_registrar_free_pending_m2(struct wps_context *wps) in wps_registrar_free_pending_m2() argument
493 p = wps->upnp_msgs; in wps_registrar_free_pending_m2()
497 wps->upnp_msgs = p->next; in wps_registrar_free_pending_m2()
514 static int wps_build_ap_setup_locked(struct wps_context *wps, in wps_build_ap_setup_locked() argument
517 if (wps->ap_setup_locked && wps->ap_setup_locked != 2) { in wps_build_ap_setup_locked()
566 return wps_build_uuid_e(msg, reg->wps->uuid); in wps_build_sel_pbc_reg_uuid_e()
[all …]
Dwps_attr_build.c21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument
26 wpabuf_clear_free(wps->dh_privkey); in wps_build_public_key()
27 wps->dh_privkey = NULL; in wps_build_public_key()
28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey && in wps_build_public_key()
29 wps->wps->dh_ctx) { in wps_build_public_key()
31 if (wps->wps->dh_pubkey == NULL) { in wps_build_public_key()
36 wps->dh_privkey = wpabuf_dup(wps->wps->dh_privkey); in wps_build_public_key()
37 wps->dh_ctx = wps->wps->dh_ctx; in wps_build_public_key()
38 wps->wps->dh_ctx = NULL; in wps_build_public_key()
39 pubkey = wpabuf_dup(wps->wps->dh_pubkey); in wps_build_public_key()
[all …]
Dwps_common.c62 int wps_derive_keys(struct wps_data *wps) in wps_derive_keys() argument
70 if (wps->dh_privkey == NULL) { in wps_derive_keys()
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; in wps_derive_keys()
81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); in wps_derive_keys()
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys()
84 dh5_free(wps->dh_ctx); in wps_derive_keys()
85 wps->dh_ctx = NULL; in wps_derive_keys()
93 wpabuf_clear_free(wps->dh_privkey); in wps_derive_keys()
94 wps->dh_privkey = NULL; in wps_derive_keys()
106 addr[0] = wps->nonce_e; in wps_derive_keys()
[all …]
Dwps_i.h27 struct wps_context *wps; member
136 int wps_derive_keys(struct wps_data *wps);
137 int wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd,
139 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
141 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg,
143 void wps_success_event(struct wps_context *wps, const u8 *mac_addr);
144 void wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part,
146 void wps_pbc_overlap_event(struct wps_context *wps);
147 void wps_pbc_timeout_event(struct wps_context *wps);
148 void wps_pbc_active_event(struct wps_context *wps);
[all …]
Dwps_er.c34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta, in wps_er_sta_event() argument
40 if (wps->event_cb == NULL) in wps_er_sta_event()
55 wps->event_cb(wps->cb_ctx, event, &data); in wps_er_sta_event()
76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE); in wps_er_sta_free()
77 if (sta->wps) in wps_er_sta_free()
78 wps_deinit(sta->wps); in wps_er_sta_free()
127 static void wps_er_ap_event(struct wps_context *wps, struct wps_er_ap *ap, in wps_er_ap_event() argument
133 if (wps->event_cb == NULL) in wps_er_ap_event()
150 wps->event_cb(wps->cb_ctx, event, &data); in wps_er_ap_event()
340 wps_er_ap_event(er->wps, ap, WPS_EV_ER_AP_REMOVE); in wps_er_ap_remove_entry()
[all …]
Dwps_upnp_web.c195 s = iface->wps->friendly_name; in format_wps_device_xml()
199 s = iface->wps->dev.manufacturer; in format_wps_device_xml()
203 if (iface->wps->manufacturer_url) in format_wps_device_xml()
205 iface->wps->manufacturer_url); in format_wps_device_xml()
207 if (iface->wps->model_description) in format_wps_device_xml()
209 iface->wps->model_description); in format_wps_device_xml()
211 s = iface->wps->dev.model_name; in format_wps_device_xml()
215 if (iface->wps->dev.model_number) in format_wps_device_xml()
217 iface->wps->dev.model_number); in format_wps_device_xml()
219 if (iface->wps->model_url) in format_wps_device_xml()
[all …]
Dwps.c44 data->wps = cfg->wps; in wps_init()
47 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
49 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN); in wps_init()
50 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
69 if (cfg->wps->ap && !cfg->registrar && cfg->wps->ap_nfc_dev_pw_id) { in wps_init()
75 data->dev_pw_id = cfg->wps->ap_nfc_dev_pw_id; in wps_init()
77 os_memdup(wpabuf_head(cfg->wps->ap_nfc_dev_pw), in wps_init()
78 wpabuf_len(cfg->wps->ap_nfc_dev_pw)); in wps_init()
83 data->dev_password_len = wpabuf_len(cfg->wps->ap_nfc_dev_pw); in wps_init()
162 wps_registrar_remove_nfc_pw_token(data->wps->registrar, in wps_deinit()
[all …]
Dwps_attr_process.c16 int wps_process_authenticator(struct wps_data *wps, const u8 *authenticator, in wps_process_authenticator() argument
29 if (wps->last_msg == NULL) { in wps_process_authenticator()
38 addr[0] = wpabuf_head(wps->last_msg); in wps_process_authenticator()
39 len[0] = wpabuf_len(wps->last_msg); in wps_process_authenticator()
43 if (hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 2, addr, len, in wps_process_authenticator()
54 int wps_process_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg, in wps_process_key_wrap_auth() argument
74 if (hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, head, len, hash) < 0 || in wps_process_key_wrap_auth()
Dwps_er.h28 struct wps_data *wps; member
40 struct wps_data *wps; member
77 struct wps_context *wps; member
Dwps.h114 struct wps_context *wps; member
229 enum wps_process_res wps_process_msg(struct wps_data *wps,
233 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code);
847 wps_registrar_init(struct wps_context *wps,
891 struct wpabuf * wps_get_oob_cred(struct wps_context *wps, int rf_band,
893 int wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr);
897 struct wps_er * wps_er_init(struct wps_context *wps, const char *ifname,
912 struct wpabuf * wps_er_config_token_from_cred(struct wps_context *wps,
917 struct wps_context *wps, const u8 *uuid,
Dwps_upnp.h22 struct wps_data *wps; member
40 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
Dwps_upnp.c569 upnp_er_remove_notification(iface->wps->registrar, s); in subscription_destroy()
1143 iface->wps->registrar); in upnp_wps_device_deinit()
1148 if (peer->wps) in upnp_wps_device_deinit()
1149 wps_deinit(peer->wps); in upnp_wps_device_deinit()
1175 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps, in upnp_wps_device_init() argument
1192 iface->wps = wps; in upnp_wps_device_init()
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c34 struct wps_context *wps);
43 static void hostapd_wps_nfc_clear(struct wps_context *wps);
128 p->wps = 1; in hostapd_wps_new_psk_cb()
222 if (hapd != data->current_hapd && hapd->wps != NULL) in wps_stop_registrar()
223 wps_registrar_complete(hapd->wps->registrar, data->uuid_e, in wps_stop_registrar()
284 if (!wpa_psk->wps) in hostapd_wps_lookup_pskfile_cb()
466 if (hapd->wps == NULL) in hapd_wps_cred_cb()
500 os_memcpy(hapd->wps->ssid, cred->ssid, cred->ssid_len); in hapd_wps_cred_cb()
501 hapd->wps->ssid_len = cred->ssid_len; in hapd_wps_cred_cb()
502 hapd->wps->encr_types = cred->encr_type; in hapd_wps_cred_cb()
[all …]
Dtaxonomy.c100 char wps[WPS_NAME_LEN + 5 + 1]; /* room to prepend ",wps:" + trailing in ie_to_string() local
115 os_memset(wps, 0, sizeof(wps)); in ie_to_string()
145 os_snprintf(wps, sizeof(wps), in ie_to_string()
231 txpow, extcap, wps); in ie_to_string()
Ddrv_callbacks.c320 struct wpabuf *wps; in hostapd_notif_assoc() local
334 wps = ieee802_11_vendor_ie_concat(ie, ielen, in hostapd_notif_assoc()
336 if (wps) { in hostapd_notif_assoc()
337 if (wps_is_20(wps)) { in hostapd_notif_assoc()
342 wpabuf_free(wps); in hostapd_notif_assoc()
474 struct wpabuf *wps; in hostapd_notif_assoc() local
477 wps = ieee802_11_vendor_ie_concat(req_ies, req_ies_len, in hostapd_notif_assoc()
480 wps = NULL; in hostapd_notif_assoc()
482 if (wps && wps_validate_assoc_req(wps) < 0) { in hostapd_notif_assoc()
485 wpabuf_free(wps); in hostapd_notif_assoc()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c141 struct wpabuf *wps; in wpas_wps_eapol_cb() local
144 wps = wpa_bss_get_vendor_ie_multi(bss, in wpas_wps_eapol_cb()
146 if (wps && wps_parse_msg(wps, &attr) == 0 && in wpas_wps_eapol_cb()
150 wpabuf_free(wps); in wpas_wps_eapol_cb()
1511 struct wps_context *wps) in wpas_wps_set_uuid() argument
1522 if (wps != wpa_s->global->ifaces->wps) in wpas_wps_set_uuid()
1523 os_memcpy(wps->uuid, in wpas_wps_set_uuid()
1524 wpa_s->global->ifaces->wps->uuid, in wpas_wps_set_uuid()
1528 uuid_random(wps->uuid); in wpas_wps_set_uuid()
1531 uuid_gen_mac_addr(wpa_s->own_addr, wps->uuid); in wpas_wps_set_uuid()
[all …]
Dap.c658 os_memcpy(bss->uuid, wpa_s->wps->uuid, WPS_UUID_LEN); in wpa_supplicant_conf_ap()
1154 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]->wps) in wpa_supplicant_ap_wps_cancel()
1157 reg = wpa_s->ap_iface->bss[0]->wps->registrar; in wpa_supplicant_ap_wps_cancel()
1597 struct wps_context *wps; in wpas_ap_wps_add_nfc_pw() local
1602 wps = hapd->wps; in wpas_ap_wps_add_nfc_pw()
1610 dh5_free(wps->dh_ctx); in wpas_ap_wps_add_nfc_pw()
1611 wpabuf_free(wps->dh_pubkey); in wpas_ap_wps_add_nfc_pw()
1612 wpabuf_free(wps->dh_privkey); in wpas_ap_wps_add_nfc_pw()
1613 wps->dh_privkey = wpabuf_dup( in wpas_ap_wps_add_nfc_pw()
1615 wps->dh_pubkey = wpabuf_dup( in wpas_ap_wps_add_nfc_pw()
[all …]
/external/igt-gpu-tools/scripts/
Dmedia-bench.pl146 my ($time, $wps, $cmd);
161 $wps = $2;
168 return ($time, $wps, \@ret);
261 my ($time, $wps);
270 ($time, $wps) = run_workload(@args);
272 $wps = $r / $time if $w_direct;
277 $r = int($wps * $client_target_s);
312 my ($time, $wps);
315 ($time, $wps, $wwps) = run_workload(@args_);
317 say " $c clients is $wps wps." if $verbose;
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_wsc.c27 struct wps_data *wps; member
147 struct wps_context *wps; in eap_wsc_init() local
153 wps = sm->wps; in eap_wsc_init()
154 if (wps == NULL) { in eap_wsc_init()
178 data->wps_ctx = wps; in eap_wsc_init()
181 cfg.wps = wps; in eap_wsc_init()
261 data->wps = wps_init(&cfg); in eap_wsc_init()
262 if (data->wps == NULL) { in eap_wsc_init()
293 wps_deinit(data->wps); in eap_wsc_deinit()
532 res = wps_process_msg(data->wps, op_code, data->in_buf); in eap_wsc_process()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_wsc.c27 struct wps_data *wps; member
106 cfg.wps = sm->cfg->wps; in eap_wsc_init()
109 if (!sm->cfg->wps || !sm->cfg->wps->registrar) { in eap_wsc_init()
142 data->wps = wps_init(&cfg); in eap_wsc_init()
143 if (data->wps == NULL) { in eap_wsc_init()
160 wps_deinit(data->wps); in eap_wsc_reset()
251 data->out_buf = wps_get_msg(data->wps, in eap_wsc_buildReq()
436 res = wps_process_msg(data->wps, op_code, data->in_buf); in eap_wsc_process()
/external/wpa_supplicant_8/hostapd/
Dhostapd.wpa_psk11 # wps=<0/1> (default: 0). Any matching entry with that tag will be used when
19 wps=1 00:00:00:00:00:00 passphrase for WPS
20 wps=1 11:22:33:44:55:00 dev-specific passphrase for WPS
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dwpas-dbus-new-wps.py73 wps = dbus.Interface(if_obj, WPAS_DBUS_WPS_INTERFACE)
74 wps.Start({'Role': 'enrollee', 'Type': 'pbc'})
/external/wpa_supplicant_8/hs20/client/
DMakefile41 OBJS += ../../src/wps/httpread.o
42 OBJS += ../../src/wps/http_server.o
/external/wpa_supplicant_8/src/
DMakefile1 …apol_auth eapol_supp eap_common eap_peer eap_server l2_packet p2p pae radius rsn_supp tls utils wps

123