hostapd: Prohibit WEP configuration when HT is enabled
WFA 11n testing does not allow WEP when IEEE 802.11n is enabled. Reject such combination when parsing hostapd configuration file. Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
This commit is contained in:
parent
74b1c84a0b
commit
6950b2caa8
1 changed files with 7 additions and 0 deletions
|
@ -1090,6 +1090,13 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
|
|||
#endif /* CONFIG_IEEE80211R */
|
||||
|
||||
#ifdef CONFIG_IEEE80211N
|
||||
if (conf->ieee80211n &&
|
||||
bss->ssid.security_policy == SECURITY_STATIC_WEP) {
|
||||
wpa_printf(MSG_ERROR, "HT (IEEE 802.11n) with WEP is not "
|
||||
"allowed");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (conf->ieee80211n && bss->wpa &&
|
||||
!(bss->wpa_pairwise & WPA_CIPHER_CCMP) &&
|
||||
!(bss->rsn_pairwise & WPA_CIPHER_CCMP)) {
|
||||
|
|
Loading…
Reference in a new issue