From 551817a58242b091d6e9a96e765ebcaba9e1d91b Mon Sep 17 00:00:00 2001 From: Wu Gao Date: Tue, 2 Aug 2016 17:31:48 +0300 Subject: [PATCH] AP: Disable VHT in WEP configuration This was already done for HT, but VHT has the same constraint on not allowing WEP. Signed-off-by: Jouni Malinen --- src/ap/ap_config.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index 2345dd955..228de2baf 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -841,6 +841,15 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss, } #endif /* CONFIG_IEEE80211N */ +#ifdef CONFIG_IEEE80211AC + if (full_config && conf->ieee80211ac && + bss->ssid.security_policy == SECURITY_STATIC_WEP) { + bss->disable_11ac = 1; + wpa_printf(MSG_ERROR, + "VHT (IEEE 802.11ac) with WEP is not allowed, disabling VHT capabilities"); + } +#endif /* CONFIG_IEEE80211AC */ + #ifdef CONFIG_WPS if (full_config && bss->wps_state && bss->ignore_broadcast_ssid) { wpa_printf(MSG_INFO, "WPS: ignore_broadcast_ssid "