[PATCH 9/9] wpa_supplicant: Disable HT/VHT overrides in 6 GHz

Rajkumar Manoharan <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
Do not allow HT and VHT overrides in 6 GHz band and disable both.

Signed-off-by: Rajkumar Manoharan <[email protected]>
---
 wpa_supplicant/wpa_supplicant.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index d3e8a05806a8..c92b68ede841 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -5195,6 +5195,11 @@ void wpa_supplicant_apply_ht_overrides(
 	if (!ssid)
 		return;
 
+	if (is_6ghz_freq(params->freq.freq)) {
+		params->disable_ht = 1;
+		return;
+	}
+
 	params->disable_ht = ssid->disable_ht;
 	if (!params->htcaps || !params->htcaps_mask)
 		return;
@@ -5233,6 +5238,11 @@ void wpa_supplicant_apply_vht_overrides(
 	if (!ssid)
 		return;
 
+	if (is_6ghz_freq(params->freq.freq)) {
+		params->disable_vht = 1;
+		return;
+	}
+
 	params->disable_vht = ssid->disable_vht;
 
 	vhtcaps = (void *) params->vhtcaps;
-- 
2.7.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.