aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-06-02 07:45:31 +0200
committerFelix Fietkau <nbd@nbd.name>2021-06-02 07:46:21 +0200
commit42a99b18ff23fa768a6ae5f1076f15cbfa494f24 (patch)
treebc79d808599774398a619a702cc807641f1d41a2 /package/kernel
parent3518b793a2f2293e7e9124b5beae7b09887c5e32 (diff)
downloadupstream-42a99b18ff23fa768a6ae5f1076f15cbfa494f24.tar.gz
upstream-42a99b18ff23fa768a6ae5f1076f15cbfa494f24.tar.bz2
upstream-42a99b18ff23fa768a6ae5f1076f15cbfa494f24.zip
mac80211: do not enable VHT in the default config on 2.4 GHz
Some drivers advertise it, but it's not supported at the moment Reported-by: John Thomson <git@johnthomson.fastmail.com.au> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/files/lib/wifi/mac80211.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
index f5d4f2e90a..02eabd0506 100644
--- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
@@ -70,7 +70,7 @@ BEGIN {
if (channel) {
mode="NOHT"
if (ht) mode="HT20"
- if (vht) mode="VHT80"
+ if (vht && band != "1:")) mode="VHT80"
if (he) mode="HE80"
if (he && band == "1:") mode="HE20"
sub("\\[", "", channel)