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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do not allow HT and VHT overrides in 6 GHz band and disable both.

Signed-off-by: Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxx>
---
 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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux