aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>2015-09-04 05:22:58 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-04 22:14:01 (GMT)
commit80653771991197876918b4ea357c4f43e4b181b5 (patch)
tree446a3b359ed0872d5a5350ac052f0e5c109a4bf3 /src
parent8406cd35159f4286c12a629ddfecaa33e587a805 (diff)
downloadhostap-80653771991197876918b4ea357c4f43e4b181b5.zip
hostap-80653771991197876918b4ea357c4f43e4b181b5.tar.gz
hostap-80653771991197876918b4ea357c4f43e4b181b5.tar.bz2
Do not advertise DSSS/CCK support in 40 MHz for 5 GHz band
DSSS/CCK rate support in 40 MHz has to be set to 0 for 5 GHz band since this mechanism is designed only for the 2.4 GHz band. Clear HT_CAP_INFO_DSSS_CCK40MHZ in ht_capab when the configured mode is neither 11b nor 11g. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/ap/hw_features.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 7cb7e88..fc8786d 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -732,6 +732,15 @@ int hostapd_check_ht_capab(struct hostapd_iface *iface)
int ret;
if (!iface->conf->ieee80211n)
return 0;
+
+ if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211B &&
+ iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G &&
+ (iface->conf->ht_capab & HT_CAP_INFO_DSSS_CCK40MHZ)) {
+ wpa_printf(MSG_DEBUG,
+ "Disable HT capability [DSSS_CCK-40] on 5 GHz band");
+ iface->conf->ht_capab &= ~HT_CAP_INFO_DSSS_CCK40MHZ;
+ }
+
if (!ieee80211n_supported_ht_capab(iface))
return -1;
#ifdef CONFIG_IEEE80211AC