|
@@ -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
|