aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-06-02 07:45:31 +0200
committerFelix Fietkau <nbd@nbd.name>2021-11-23 18:30:04 +0100
commit8e3b3fa577789d0d5e829688db38665c11d44e5f (patch)
tree5abc3021dcff1a756822f6d7cade8d44dd49399e /package/kernel/mac80211
parent4edda0c544d1eab75bebced27247fff69eacc8ba (diff)
downloadupstream-8e3b3fa577789d0d5e829688db38665c11d44e5f.tar.gz
upstream-8e3b3fa577789d0d5e829688db38665c11d44e5f.tar.bz2
upstream-8e3b3fa577789d0d5e829688db38665c11d44e5f.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> (cherry-picked from commit 42a99b18ff23fa768a6ae5f1076f15cbfa494f24)
Diffstat (limited to 'package/kernel/mac80211')
-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)