Home
last modified time | relevance | path

Searched refs:encr_type (Results 1 – 14 of 14) sorted by relevance

/external/wpa_supplicant_8/src/wps/
Dwps_attr_process.c139 const u8 *encr_type) in wps_process_cred_encr_type() argument
141 if (encr_type == NULL) { in wps_process_cred_encr_type()
147 cred->encr_type = WPA_GET_BE16(encr_type); in wps_process_cred_encr_type()
149 cred->encr_type); in wps_process_cred_encr_type()
175 cred->encr_type == WPS_ENCR_NONE) { in wps_process_cred_network_key()
245 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_cred()
264 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_ap_settings()
Dwps_enrollee.c274 u16 encr_type = wps->wps->ap_encr_type; in wps_build_cred_encr_type() local
282 if (encr_type & WPS_ENCR_AES) in wps_build_cred_encr_type()
283 encr_type = WPS_ENCR_AES; in wps_build_cred_encr_type()
284 else if (encr_type & WPS_ENCR_TKIP) in wps_build_cred_encr_type()
285 encr_type = WPS_ENCR_TKIP; in wps_build_cred_encr_type()
288 wpa_printf(MSG_DEBUG, "WPS: * Encryption Type (0x%x)", encr_type); in wps_build_cred_encr_type()
291 wpabuf_put_be16(msg, encr_type); in wps_build_cred_encr_type()
735 if (!(wps->cred.encr_type & in wps_process_cred_e()
737 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e()
745 "invalid encr_type 0x%x", wps->cred.encr_type); in wps_process_cred_e()
[all …]
Dwps_registrar.c1536 cred->encr_type); in wps_build_cred_encr_type()
1539 wpabuf_put_be16(msg, cred->encr_type); in wps_build_cred_encr_type()
1628 wps->wps->encr_types_wpa, wps->encr_type); in wps_build_cred()
1630 wps->encr_type &= wps->wps->encr_types_rsn; in wps_build_cred()
1632 wps->encr_type &= wps->wps->encr_types_wpa; in wps_build_cred()
1635 if (wps->encr_type & WPS_ENCR_AES) in wps_build_cred()
1636 wps->encr_type = WPS_ENCR_AES; in wps_build_cred()
1637 else if (wps->encr_type & WPS_ENCR_TKIP) in wps_build_cred()
1638 wps->encr_type = WPS_ENCR_TKIP; in wps_build_cred()
1645 if (wps->encr_type & WPS_ENCR_NONE) in wps_build_cred()
[all …]
Dwps_validate.c988 const u8 *encr_type, int mandatory) in wps_validate_network_key() argument
998 if (((encr_type == NULL || WPA_GET_BE16(encr_type) != WPS_ENCR_WEP) && in wps_validate_network_key()
1044 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred()
1047 attr.encr_type, 1) || in wps_validate_cred()
1743 wps_validate_encr_type(attr.encr_type, !ap) || in wps_validate_m7_encr()
1746 attr.encr_type, !ap) || in wps_validate_m7_encr()
1815 wps_validate_encr_type(attr.encr_type, ap) || in wps_validate_m8_encr()
Dwps_attr_parse.h46 const u8 *encr_type; /* 2 octets */ member
Dwps_i.h89 u16 encr_type; member
Dwps_common.c369 data.encr_type = wps->encr_types; in wps_get_oob_cred()
391 cred.encr_type = WPS_ENCR_TKIP | WPS_ENCR_AES; in wps_get_oob_cred()
Dwps_attr_parse.c398 attr->encr_type = pos; in wps_set_attr()
Dwps.h51 u16 encr_type; member
/external/wpa_supplicant_8/src/eap_peer/
Deap_wsc.c104 cred->encr_type = WPS_ENCR_NONE; in eap_wsc_new_ap_settings()
107 cred->encr_type = WPS_ENCR_WEP; in eap_wsc_new_ap_settings()
110 cred->encr_type = WPS_ENCR_TKIP; in eap_wsc_new_ap_settings()
112 cred->encr_type = WPS_ENCR_AES; in eap_wsc_new_ap_settings()
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c350 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_reconfig_in_memory()
356 if (cred->encr_type & WPS_ENCR_TKIP) in hapd_wps_reconfig_in_memory()
421 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in hapd_wps_cred_cb()
447 hapd->wps->encr_types = cred->encr_type; in hapd_wps_cred_cb()
448 hapd->wps->encr_types_rsn = cred->encr_type; in hapd_wps_cred_cb()
449 hapd->wps->encr_types_wpa = cred->encr_type; in hapd_wps_cred_cb()
451 hapd->wps->ap_encr_type = cred->encr_type; in hapd_wps_cred_cb()
543 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_cred_cb()
551 if (cred->encr_type & WPS_ENCR_TKIP) { in hapd_wps_cred_cb()
1698 cred.encr_type = WPS_ENCR_NONE; in hostapd_wps_config_ap()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c394 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in wpa_supplicant_wps_cred()
480 switch (cred->encr_type) { in wpa_supplicant_wps_cred()
806 cred->auth_type, cred->encr_type, key_str); in wpa_supplicant_wps_event_er_ap_settings()
1978 cred->encr_type = WPS_ENCR_AES; in wpas_wps_network_to_cred()
1980 cred->encr_type = WPS_ENCR_TKIP; in wpas_wps_network_to_cred()
1993 cred->encr_type = WPS_ENCR_NONE; in wpas_wps_network_to_cred()
2068 cred.encr_type = WPS_ENCR_NONE; in wpas_wps_er_config()
2071 cred.encr_type = WPS_ENCR_WEP; in wpas_wps_er_config()
2074 cred.encr_type = WPS_ENCR_TKIP; in wpas_wps_er_config()
2076 cred.encr_type = WPS_ENCR_AES; in wpas_wps_er_config()
DREADME-WPS314 …uid=fd91b4ec-e3fa-5891-a57d-8c59efeed1d2 ssid=test-wps auth_type=0x0020 encr_type=0x0008 key=12345…
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new.c730 char *encr_type[3]; /* we have three possible encryption types */ in wpas_dbus_signal_wps_cred() local
760 if (cred->encr_type & WPS_ENCR_NONE) in wpas_dbus_signal_wps_cred()
761 encr_type[et_num++] = "none"; in wpas_dbus_signal_wps_cred()
762 if (cred->encr_type & WPS_ENCR_TKIP) in wpas_dbus_signal_wps_cred()
763 encr_type[et_num++] = "tkip"; in wpas_dbus_signal_wps_cred()
764 if (cred->encr_type & WPS_ENCR_AES) in wpas_dbus_signal_wps_cred()
765 encr_type[et_num++] = "aes"; in wpas_dbus_signal_wps_cred()
778 (const char **) encr_type, in wpas_dbus_signal_wps_cred()