aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-04-02 11:03:14 +0530
committerJouni Malinen <j@w1.fi>2012-04-03 12:03:18 +0300
commit1ed08baf89e455d0d087fb1e7177bc5f07b4d7ac (patch)
treeba37fef1a9c351bed1bb4264bf4193fc958c0b3e /hostapd
parentdbe7aa222510c6f02e7813cc6ea0cdf84d3fec9c (diff)
downloadexternal_wpa_supplicant_8_ti-1ed08baf89e455d0d087fb1e7177bc5f07b4d7ac.zip
external_wpa_supplicant_8_ti-1ed08baf89e455d0d087fb1e7177bc5f07b4d7ac.tar.gz
external_wpa_supplicant_8_ti-1ed08baf89e455d0d087fb1e7177bc5f07b4d7ac.tar.bz2
hostapd: Do not allow HT in 11b mode
When the HW mode has been configured as 11b, disable HT operations. Signed-hostap: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 638adcc..6fa53f3 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -1090,6 +1090,12 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
#endif /* CONFIG_IEEE80211R */
#ifdef CONFIG_IEEE80211N
+ if (conf->ieee80211n && conf->hw_mode == HOSTAPD_MODE_IEEE80211B) {
+ bss->disable_11n = 1;
+ wpa_printf(MSG_ERROR, "HT (IEEE 802.11n) in 11b mode is not "
+ "allowed, disabling HT capabilites");
+ }
+
if (conf->ieee80211n &&
bss->ssid.security_policy == SECURITY_STATIC_WEP) {
bss->disable_11n = 1;