From a120c3fad6c913a211f9c6b9dca3d0d3adb5f72b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 19 Aug 2012 19:10:40 +0300 Subject: [PATCH] WPS: Remove unused credential handlers for 802.1X The WPA_AUTH_WPA and WPA_AUTH_WPA2 cases have already been rejected in this function when execution comes here. In theory, support for WPA-Enterprise could be added, but since that has not happened over the years, there is no good reason to keep this dead code here. Signed-hostap: Jouni Malinen --- wpa_supplicant/wps_supplicant.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 87cfa84..4b3d155 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -354,16 +354,6 @@ static int wpa_supplicant_wps_cred(void *ctx, ssid->key_mgmt = WPA_KEY_MGMT_PSK; ssid->proto = WPA_PROTO_WPA; break; - case WPS_AUTH_WPA: - ssid->auth_alg = WPA_AUTH_ALG_OPEN; - ssid->key_mgmt = WPA_KEY_MGMT_IEEE8021X; - ssid->proto = WPA_PROTO_WPA; - break; - case WPS_AUTH_WPA2: - ssid->auth_alg = WPA_AUTH_ALG_OPEN; - ssid->key_mgmt = WPA_KEY_MGMT_IEEE8021X; - ssid->proto = WPA_PROTO_RSN; - break; case WPS_AUTH_WPA2PSK: ssid->auth_alg = WPA_AUTH_ALG_OPEN; ssid->key_mgmt = WPA_KEY_MGMT_PSK; -- 2.1.4