From 0bfc04b8d0f8e3b5c6638a23efcbe8aa9614c192 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Fri, 13 Dec 2019 14:31:00 +0530 Subject: [PATCH] Do not enable HT/VHT when operating in 6 GHz band Only HE mode is allowed in the 6 GHz band hence do not enable HT/VHT even if they are configured by the user. Signed-off-by: Jouni Malinen --- src/common/hw_features_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/hw_features_common.c b/src/common/hw_features_common.c index 4da58c421..27a138f9a 100644 --- a/src/common/hw_features_common.c +++ b/src/common/hw_features_common.c @@ -451,6 +451,8 @@ int hostapd_set_freq_params(struct hostapd_freq_params *data, data->bandwidth = (1 << (u8) bw) * 20; data->center_freq1 = freq1; data->center_freq2 = freq2; + data->ht_enabled = 0; + data->vht_enabled = 0; } return 0;