aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Matusiak <filip.matusiak@tieto.com>2016-10-17 14:53:09 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-28 21:55:49 (GMT)
commit59d7cff7e3d9a8fad3a865b6629b11a149183d69 (patch)
treedf5c22dbbdb63b9d173f50838f07529b8dc54e7c
parent847ee1aac3dc44c94ace3105106595b6c5b464ad (diff)
downloadhostap-59d7cff7e3d9a8fad3a865b6629b11a149183d69.zip
hostap-59d7cff7e3d9a8fad3a865b6629b11a149183d69.tar.gz
hostap-59d7cff7e3d9a8fad3a865b6629b11a149183d69.tar.bz2
AP: Disable VHT in TKIP-only configuration
This has already been done for WEP, but there's same constraint for not allowing VTH rates in case of TKIP. Signed-off-by: Filip Matusiak <filip.matusiak@tieto.com>
-rw-r--r--src/ap/ap_config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index 228de2b..8c5bda7 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -848,6 +848,16 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
wpa_printf(MSG_ERROR,
"VHT (IEEE 802.11ac) with WEP is not allowed, disabling VHT capabilities");
}
+
+ if (full_config && conf->ieee80211ac && bss->wpa &&
+ !(bss->wpa_pairwise & WPA_CIPHER_CCMP) &&
+ !(bss->rsn_pairwise & (WPA_CIPHER_CCMP | WPA_CIPHER_GCMP |
+ WPA_CIPHER_CCMP_256 | WPA_CIPHER_GCMP_256)))
+ {
+ bss->disable_11ac = 1;
+ wpa_printf(MSG_ERROR,
+ "VHT (IEEE 802.11ac) with WPA/WPA2 requires CCMP/GCMP to be enabled, disabling VHT capabilities");
+ }
#endif /* CONFIG_IEEE80211AC */
#ifdef CONFIG_WPS