mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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 <j@w1.fi>
This commit is contained in:
parent
c7f1791970
commit
a120c3fad6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user