From: Jouni Malinen Date: Sat, 22 Mar 2014 17:22:10 +0000 (+0200) Subject: WPS: Comment out unused AP WEP config update with WPS 2.0 X-Git-Tag: hostap_2_2~486 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a500f3102fcacaff2747fb2ee2618cf563c9f215;p=thirdparty%2Fhostap.git WPS: Comment out unused AP WEP config update with WPS 2.0 The main WPS code rejects WEP parameters, so this code is not used and can be commented out from WPS 2.0 builds. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index 62cd03cf0..787d2be52 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -378,6 +378,13 @@ static int hapd_wps_reconfig_in_memory(struct hostapd_data *hapd, } bss->auth_algs = 1; } else { +#ifdef CONFIG_WPS2 + /* + * WPS 2.0 does not allow WEP to be configured, so no need to + * process that option here either. + */ + bss->auth_algs = 1; +#else /* CONFIG_WPS2 */ if ((cred->auth_type & WPS_AUTH_OPEN) && (cred->auth_type & WPS_AUTH_SHARED)) bss->auth_algs = 3; @@ -412,6 +419,7 @@ static int hapd_wps_reconfig_in_memory(struct hostapd_data *hapd, } wep->keys_set = 1; } +#endif /* CONFIG_WPS2 */ } /* Schedule configuration reload after short period of time to allow