aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorYanbo Li <yanbol@qti.qualcomm.com>2014-11-10 15:12:29 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-13 22:59:22 (GMT)
commite7d0e97bdbdc996564f06b382af3d5a5164a8fb3 (patch)
tree65a2f65671720c6ce66c773164d91ead6d4a0d29 /hostapd/config_file.c
parent3e7f1c7980c6e9fc7173f78aa72b2761fcd8924d (diff)
downloadhostap-e7d0e97bdbdc996564f06b382af3d5a5164a8fb3.zip
hostap-e7d0e97bdbdc996564f06b382af3d5a5164a8fb3.tar.gz
hostap-e7d0e97bdbdc996564f06b382af3d5a5164a8fb3.tar.bz2
hostapd: Add vendor specific VHT extension for the 2.4 GHz band
This allows vendor specific information element to be used to advertise support for VHT on 2.4 GHz band. In practice, this is used to enable use of 256 QAM rates (VHT-MCS 8 and 9) on 2.4 GHz band. This functionality is disabled by default, but can be enabled with vendor_vht=1 parameter in hostapd.conf if the driver advertises support for VHT on either 2.4 or 5 GHz bands. Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index e30efbe..99cd052 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2690,6 +2690,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
conf->vht_oper_centr_freq_seg0_idx = atoi(pos);
} else if (os_strcmp(buf, "vht_oper_centr_freq_seg1_idx") == 0) {
conf->vht_oper_centr_freq_seg1_idx = atoi(pos);
+ } else if (os_strcmp(buf, "vendor_vht") == 0) {
+ bss->vendor_vht = atoi(pos);
#endif /* CONFIG_IEEE80211AC */
} else if (os_strcmp(buf, "max_listen_interval") == 0) {
bss->max_listen_interval = atoi(pos);