aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-03-23 21:50:37 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-23 21:50:37 (GMT)
commitb7a8d67f5b5e23f51596ebe1ca987c352d58d938 (patch)
tree8efaef7fadd1228ed598e8011ec3b53f0652eccf /hostapd
parent145f35bf3083e36eb9437046e6b603ba9e035df9 (diff)
downloadhostap-b7a8d67f5b5e23f51596ebe1ca987c352d58d938.zip
hostap-b7a8d67f5b5e23f51596ebe1ca987c352d58d938.tar.gz
hostap-b7a8d67f5b5e23f51596ebe1ca987c352d58d938.tar.bz2
Allow hostapd to advertise 40 MHz intolerant HT capability
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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf1
2 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 814468d..e1f8b20 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -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;
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index a486d8c..b5770a4 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -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]