aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2010-11-09 14:49:03 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-09 14:49:03 (GMT)
commit6950b2caa8f408455275e9c27c6a6a1430e5c00f (patch)
treeb5a6fd4dfb8ceb8b131d8d7f74177dd282691d61
parent74b1c84a0b1218a33ce7089e11172e7f39273158 (diff)
downloadhostap-6950b2caa8f408455275e9c27c6a6a1430e5c00f.zip
hostap-6950b2caa8f408455275e9c27c6a6a1430e5c00f.tar.gz
hostap-6950b2caa8f408455275e9c27c6a6a1430e5c00f.tar.bz2
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>
-rw-r--r--hostapd/config_file.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 36b75e5..1651e25 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -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)) {