Allow hostapd to advertise 40 MHz intolerant HT capability
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 23 Mar 2014 21:50:37 +0000 (23:50 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Mar 2014 21:50:37 +0000 (23:50 +0200)
ht_capab=[40-INTOLERANT] can now be used to advertise that the BSS is 40
MHz intolerant to prevent other 20/40 MHz co-ex compliant APs from using
40 MHz channel bandwidth.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/config_file.c
hostapd/hostapd.conf

index 814468d..e1f8b20 100644 (file)
@@ -1067,6 +1067,8 @@ static int hostapd_config_ht_capab(struct hostapd_config *conf,
                conf->ht_capab |= HT_CAP_INFO_DSSS_CCK40MHZ;
        if (os_strstr(capab, "[PSMP]"))
                conf->ht_capab |= HT_CAP_INFO_PSMP_SUPP;
+       if (os_strstr(capab, "[40-INTOLERANT]"))
+               conf->ht_capab |= HT_CAP_INFO_40MHZ_INTOLERANT;
        if (os_strstr(capab, "[LSIG-TXOP-PROT]"))
                conf->ht_capab |= HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT;
 
index a486d8c..b5770a4 100644 (file)
@@ -481,6 +481,7 @@ wmm_ac_vo_acm=0
 #      set)
 # DSSS/CCK Mode in 40 MHz: [DSSS_CCK-40] = allowed (not allowed if not set)
 # PSMP support: [PSMP] (disabled if not set)
+# 40 MHz intolerant [40-INTOLERANT] (not advertised if not set)
 # L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set)
 #ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40]