aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-17 19:45:51 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 09:53:19 (GMT)
commit029256f8dd987dc2de3b2ed80952342e40fc848d (patch)
treef341937cb624a43bc6db7d7fdf8ec382eee99dc7 /wpa_supplicant
parent285fd906362485f3446a8d4169f26da9d6a91b4d (diff)
downloadhostap-06-029256f8dd987dc2de3b2ed80952342e40fc848d.zip
hostap-06-029256f8dd987dc2de3b2ed80952342e40fc848d.tar.gz
hostap-06-029256f8dd987dc2de3b2ed80952342e40fc848d.tar.bz2
WPS: Ignore credentials for unsupported authentication type
The current implementation does not support WPA/WPA2-Enterprise credentials. Ignore any credential that is using unsupported authentication type to avoid potential issues with partially configured network blocks. (cherry picked from commit f286077de2b4110c87c3c494cd02c203ecec2559)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wps_supplicant.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 8504851..a69dfec 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -58,6 +58,16 @@ static int wpa_supplicant_wps_cred(void *ctx,
wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_CRED_RECEIVED);
+ if (cred->auth_type != WPS_AUTH_OPEN &&
+ cred->auth_type != WPS_AUTH_SHARED &&
+ cred->auth_type != WPS_AUTH_WPAPSK &&
+ cred->auth_type != WPS_AUTH_WPA2PSK) {
+ wpa_printf(MSG_DEBUG, "WPS: Ignored credentials for "
+ "unsupported authentication type %d",
+ cred->auth_type);
+ return 0;
+ }
+
if (ssid && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) {
wpa_printf(MSG_DEBUG, "WPS: Replace WPS network block based "
"on the received credential");