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.c140 const u8 *encr_type) in wps_process_cred_encr_type() argument
142 if (encr_type == NULL) { in wps_process_cred_encr_type()
148 cred->encr_type = WPA_GET_BE16(encr_type); in wps_process_cred_encr_type()
150 cred->encr_type); in wps_process_cred_encr_type()
176 cred->encr_type == WPS_ENCR_NONE) { in wps_process_cred_network_key()
256 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_cred()
275 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_ap_settings()
Dwps_enrollee.c279 u16 encr_type = wps->wps->ap_encr_type; in wps_build_cred_encr_type() local
287 if (encr_type & WPS_ENCR_AES) in wps_build_cred_encr_type()
288 encr_type = WPS_ENCR_AES; in wps_build_cred_encr_type()
289 else if (encr_type & WPS_ENCR_TKIP) in wps_build_cred_encr_type()
290 encr_type = WPS_ENCR_TKIP; in wps_build_cred_encr_type()
293 wpa_printf(MSG_DEBUG, "WPS: * Encryption Type (0x%x)", encr_type); in wps_build_cred_encr_type()
296 wpabuf_put_be16(msg, encr_type); in wps_build_cred_encr_type()
740 if (!(wps->cred.encr_type & in wps_process_cred_e()
742 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e()
750 "invalid encr_type 0x%x", wps->cred.encr_type); in wps_process_cred_e()
[all …]
Dwps_registrar.c1576 cred->encr_type); in wps_build_cred_encr_type()
1579 wpabuf_put_be16(msg, cred->encr_type); in wps_build_cred_encr_type()
1656 wps->cred.encr_type = WPS_ENCR_AES; in wps_build_cred()
1696 wps->wps->encr_types_wpa, wps->encr_type); in wps_build_cred()
1698 wps->encr_type &= wps->wps->encr_types_rsn; in wps_build_cred()
1700 wps->encr_type &= wps->wps->encr_types_wpa; in wps_build_cred()
1703 if (wps->encr_type & WPS_ENCR_AES) in wps_build_cred()
1704 wps->encr_type = WPS_ENCR_AES; in wps_build_cred()
1706 else if (wps->encr_type & WPS_ENCR_TKIP) in wps_build_cred()
1707 wps->encr_type = WPS_ENCR_TKIP; 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.c372 data.encr_type = wps->encr_types; in wps_get_oob_cred()
394 cred.encr_type = WPS_ENCR_TKIP | WPS_ENCR_AES; in wps_get_oob_cred()
Dwps_attr_parse.c409 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.c392 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_reconfig_in_memory()
399 if (cred->encr_type & WPS_ENCR_TKIP) in hapd_wps_reconfig_in_memory()
476 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in hapd_wps_cred_cb()
502 hapd->wps->encr_types = cred->encr_type; in hapd_wps_cred_cb()
503 hapd->wps->encr_types_rsn = cred->encr_type; in hapd_wps_cred_cb()
504 hapd->wps->encr_types_wpa = cred->encr_type; in hapd_wps_cred_cb()
506 hapd->wps->ap_encr_type = cred->encr_type; in hapd_wps_cred_cb()
624 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_cred_cb()
633 if (cred->encr_type & WPS_ENCR_TKIP) { in hapd_wps_cred_cb()
1940 cred.encr_type = WPS_ENCR_NONE; in hostapd_wps_config_ap()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dwps_supplicant.c401 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in wpa_supplicant_wps_cred()
487 switch (cred->encr_type) { in wpa_supplicant_wps_cred()
829 cred->auth_type, cred->encr_type, key_str); in wpa_supplicant_wps_event_er_ap_settings()
2055 cred->encr_type = WPS_ENCR_AES; in wpas_wps_network_to_cred()
2057 cred->encr_type = WPS_ENCR_TKIP; in wpas_wps_network_to_cred()
2070 cred->encr_type = WPS_ENCR_NONE; in wpas_wps_network_to_cred()
2145 cred.encr_type = WPS_ENCR_NONE; in wpas_wps_er_config()
2148 cred.encr_type = WPS_ENCR_WEP; in wpas_wps_er_config()
2151 cred.encr_type = WPS_ENCR_TKIP; in wpas_wps_er_config()
2153 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.c732 char *encr_type[3]; /* we have three possible encryption types */ in wpas_dbus_signal_wps_cred() local
764 if (cred->encr_type & WPS_ENCR_NONE) in wpas_dbus_signal_wps_cred()
765 encr_type[et_num++] = "none"; in wpas_dbus_signal_wps_cred()
767 if (cred->encr_type & WPS_ENCR_TKIP) in wpas_dbus_signal_wps_cred()
768 encr_type[et_num++] = "tkip"; in wpas_dbus_signal_wps_cred()
770 if (cred->encr_type & WPS_ENCR_AES) in wpas_dbus_signal_wps_cred()
771 encr_type[et_num++] = "aes"; in wpas_dbus_signal_wps_cred()
784 (const char **) encr_type, in wpas_dbus_signal_wps_cred()