From: Yogesh Ashok Powar Date: Tue, 9 Nov 2010 14:49:03 +0000 (+0200) Subject: hostapd: Prohibit WEP configuration when HT is enabled X-Git-Tag: hostap-1-bp~866 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6950b2caa8f408455275e9c27c6a6a1430e5c00f;p=thirdparty%2Fhostap.git 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 --- diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 36b75e50c..1651e2578 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)) {