/external/wpa_supplicant_6/wpa_supplicant/ |
H A D | scan.c | 50 int wps = 0; local 56 wps = 1; 65 return wps; 90 int wps = 0; local 175 wps = wpas_wps_in_use(wpa_s->conf, &req_type); 179 !wpa_s->use_client_mlme && wps != 2) { 190 if (wps) { 191 wps_ie = wps_build_probe_req_ie(wps == 2, &wpa_s->wps->dev, 192 wpa_s->wps [all...] |
H A D | wps_supplicant.c | 653 struct wps_context *wps; local 656 wps = os_zalloc(sizeof(*wps)); 657 if (wps == NULL) 660 wps->cred_cb = wpa_supplicant_wps_cred; 661 wps->event_cb = wpa_supplicant_wps_event; 662 wps->cb_ctx = wpa_s; 664 wps->dev.device_name = wpa_s->conf->device_name; 665 wps->dev.manufacturer = wpa_s->conf->manufacturer; 666 wps [all...] |
H A D | wpa_supplicant_i.h | 360 struct wps_context *wps; member in struct:wpa_supplicant
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
H A D | wps.c | 38 data->wps = cfg->wps; 41 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN); 43 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN); 44 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN); 105 wps_registrar_invalidate_pin(data->wps->registrar, 108 wps_registrar_unlock_pin(data->wps->registrar, data->uuid_e); 123 * @wps: WPS Registration protocol data from wps_init() 133 enum wps_process_res wps_process_msg(struct wps_data *wps, argument 137 if (wps 153 wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument [all...] |
H A D | wps_upnp.h | 19 struct wps_data *wps; member in struct:upnp_wps_peer 54 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
|
H A D | wps_attr_build.c | 24 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) argument 29 pubkey = dh_init(dh_groups_get(WPS_DH_GROUP), &wps->dh_privkey); 41 if (wps->registrar) { 42 wpabuf_free(wps->dh_pubkey_r); 43 wps->dh_pubkey_r = pubkey; 45 wpabuf_free(wps->dh_pubkey_e); 46 wps->dh_pubkey_e = pubkey; 103 int wps_build_authenticator(struct wps_data *wps, struct wpabuf *msg) argument 109 if (wps->last_msg == NULL) { 118 addr[0] = wpabuf_head(wps 153 wps_build_enrollee_nonce(struct wps_data *wps, struct wpabuf *msg) argument 163 wps_build_registrar_nonce(struct wps_data *wps, struct wpabuf *msg) argument 173 wps_build_auth_type_flags(struct wps_data *wps, struct wpabuf *msg) argument 183 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument 193 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument 203 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument 213 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument 228 wps_build_encr_settings(struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain) argument [all...] |
H A D | wps_attr_process.c | 22 int wps_process_authenticator(struct wps_data *wps, const u8 *authenticator, argument 35 if (wps->last_msg == NULL) { 44 addr[0] = wpabuf_head(wps->last_msg); 45 len[0] = wpabuf_len(wps->last_msg); 48 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 2, addr, len, hash); 59 int wps_process_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg, argument 79 hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, head, len, hash);
|
H A D | wps_common.c | 64 int wps_derive_keys(struct wps_data *wps) argument 72 if (wps->dh_privkey == NULL) { 77 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; 83 dh_shared = dh_derive_shared(pubkey, wps->dh_privkey, 92 wpabuf_free(wps->dh_privkey); 93 wps->dh_privkey = NULL; 105 addr[0] = wps->nonce_e; 107 addr[1] = wps 131 wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, size_t dev_passwd_len) argument 151 wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, size_t encr_len) argument 254 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg) argument 267 wps_success_event(struct wps_context *wps) argument 276 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part) argument 290 wps_pbc_overlap_event(struct wps_context *wps) argument 299 wps_pbc_timeout_event(struct wps_context *wps) argument [all...] |
H A D | wps_enrollee.c | 23 static int wps_build_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument 28 wpabuf_put_data(msg, wps->mac_addr_e, ETH_ALEN); 33 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) argument 36 if (wps->wps->ap) 37 state = wps->wps->wps_state; 49 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) argument 55 if (os_get_random(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) 57 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps 97 wps_build_e_snonce1(struct wps_data *wps, struct wpabuf *msg) argument 107 wps_build_e_snonce2(struct wps_data *wps, struct wpabuf *msg) argument 118 wps_build_m1(struct wps_data *wps) argument 163 wps_build_m3(struct wps_data *wps) argument 193 wps_build_m5(struct wps_data *wps) argument 227 wps_build_cred_ssid(struct wps_data *wps, struct wpabuf *msg) argument 237 wps_build_cred_auth_type(struct wps_data *wps, struct wpabuf *msg) argument 247 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument 257 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument 267 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument 277 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument 294 wps_build_m7(struct wps_data *wps) argument 329 wps_build_wsc_done(struct wps_data *wps) argument 357 wps_build_wsc_ack(struct wps_data *wps) argument 379 wps_build_wsc_nack(struct wps_data *wps) argument 402 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument 463 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument 478 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument 494 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument 508 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument 528 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument 542 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument 556 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument 596 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument 636 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len) argument 676 wps_process_creds(struct wps_data *wps, const u8 *cred[], size_t cred_len[], size_t num_cred) argument 699 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs) argument 739 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 774 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument 829 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 878 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 925 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 974 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument 1048 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument 1100 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument 1179 wps_enrollee_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument [all...] |
H A D | wps_upnp_i.h | 126 struct wps_context *wps; member in struct:upnp_wps_device_sm
|
H A D | wps.h | 96 * wps - Pointer to long term WPS context 98 struct wps_context *wps; member in struct:wps_config 155 enum wps_process_res wps_process_msg(struct wps_data *wps, 159 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code); 514 wps_registrar_init(struct wps_context *wps,
|
H A D | wps_upnp.c | 183 #include "wps.h" 1103 if (sm->peer.wps) 1104 wps_deinit(sm->peer.wps); 1115 * @wps: Pointer to longterm WPS context 1120 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps, argument 1132 sm->wps = wps;
|
H A D | wps_i.h | 18 #include "wps.h" 28 * wps - Pointer to long term WPS context 30 struct wps_context *wps; member in struct:wps_data 181 int wps_derive_keys(struct wps_data *wps); 182 void wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, 184 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, 186 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg); 187 void wps_success_event(struct wps_context *wps); 188 void wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part); 189 void wps_pbc_overlap_event(struct wps_context *wps); [all...] |
H A D | wps_registrar.c | 82 struct wps_context *wps; member in struct:wps_registrar 215 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg) argument 218 wps->wps_state); 221 wpabuf_put_u8(msg, wps->wps_state); 227 static void wps_registrar_free_pending_m2(struct wps_context *wps) argument 230 p = wps->upnp_msgs; 234 wps->upnp_msgs = p->next; 251 static int wps_build_ap_setup_locked(struct wps_context *wps, argument 254 if (wps->ap_setup_locked) { 299 methods = reg->wps 361 wps_registrar_init(struct wps_context *wps, const struct wps_registrar_config *cfg) argument 881 wps_get_dev_password(struct wps_data *wps) argument 915 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument 925 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument 973 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument 983 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument 1077 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument 1201 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument 1212 wps_build_m2(struct wps_data *wps) argument 1254 wps_build_m2d(struct wps_data *wps) argument 1291 wps_build_m4(struct wps_data *wps) argument 1328 wps_build_m6(struct wps_data *wps) argument 1363 wps_build_m8(struct wps_data *wps) argument 1398 wps_build_wsc_ack(struct wps_data *wps) argument 1420 wps_build_wsc_nack(struct wps_data *wps) argument 1443 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument 1541 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument 1556 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument 1572 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument 1586 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument 1600 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument 1614 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument 1628 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument 1668 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument 1711 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument 1727 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument 1744 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument 1784 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument 1824 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument 1839 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument 1856 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument 1871 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument 1887 wps_process_config_error(struct wps_data *wps, const u8 *err) argument 1903 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument 1965 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 1999 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 2054 wps_sta_cred_cb(struct wps_data *wps) argument 2076 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument 2106 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 2163 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument 2240 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument 2313 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument 2395 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument 2507 wps_registrar_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
H A D | eap.h | 249 * wps - WPS context data 253 struct wps_context *wps; member in struct:eap_config
|
H A D | eap_wsc.c | 21 #include "wps/wps.h" 22 #include "wps/wps_defs.h" 33 struct wps_data *wps; member in struct:eap_wsc_data 77 struct wps_context *wps; local 79 wps = sm->wps; 80 if (wps == NULL) { 104 data->wps_ctx = wps; 107 cfg.wps [all...] |
H A D | eap_i.h | 335 struct wps_context *wps; member in struct:eap_sm
|
/external/wpa_supplicant_6/wpa_supplicant/src/radius/ |
H A D | radius_server.h | 36 struct wps_context *wps; member in struct:radius_server_conf
|
H A D | radius_server.c | 96 struct wps_context *wps; member in struct:radius_server_data 328 eap_conf.wps = data->wps; 1072 data->wps = conf->wps;
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
H A D | eap.h | 106 struct wps_context *wps; member in struct:eap_config
|
H A D | eap_wsc.c | 21 #include "wps/wps.h" 32 struct wps_data *wps; member in struct:eap_wsc_data 109 cfg.wps = sm->wps; 112 if (sm->wps == NULL || sm->wps->registrar == NULL) { 129 data->wps = wps_init(&cfg); 130 if (data->wps == NULL) { 146 wps_deinit(data->wps); [all...] |
H A D | eap_i.h | 184 struct wps_context *wps; member in struct:eap_sm
|
/external/wpa_supplicant_6/wpa_supplicant/src/eapol_supp/ |
H A D | eapol_supp_sm.h | 204 * wps - WPS context data 208 struct wps_context *wps; member in struct:eapol_ctx
|
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui-qt4/ |
H A D | wpagui.cpp | 428 bool wps = types.contains("WSC"); local 429 actionWPS->setEnabled(wps); 430 wpsTab->setEnabled(wps); 431 wpaguiTab->setTabEnabled(wpaguiTab->indexOf(wpsTab), wps);
|