]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Do not enable HT/VHT when operating in 6 GHz band
authorVamsi Krishna <vamsin@codeaurora.org>
Fri, 13 Dec 2019 09:01:00 +0000 (14:31 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 20 Dec 2019 11:25:07 +0000 (13:25 +0200)
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 <jouni@codeaurora.org>
src/common/hw_features_common.c

index 4da58c4218044db922b47d45f7960e2622509084..27a138f9adc8d82009add3f48ccce01e334d9733 100644 (file)
@@ -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;