]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Do not allow HT in 11b mode
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 2 Apr 2012 05:33:14 +0000 (11:03 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 3 Apr 2012 09:03:18 +0000 (12:03 +0300)
When the HW mode has been configured as 11b, disable HT
operations.

Signed-hostap: Sujith Manoharan <c_manoha@qca.qualcomm.com>

hostapd/config_file.c

index 638adcc4011305eaf6cd517e40a54db5c315349e..6fa53f35364586ace4be764db53055be69f01515 100644 (file)
@@ -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;