From b7a8d67f5b5e23f51596ebe1ca987c352d58d938 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 23 Mar 2014 23:50:37 +0200 Subject: [PATCH] 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 --- hostapd/config_file.c | 2 ++ hostapd/hostapd.conf | 1 + 2 files changed, 3 insertions(+) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 814468d11..e1f8b20dc 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 a486d8c22..b5770a4f0 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]