gl-infra-builder-FUjr/patches-siflower-18.x/4013-fix-change-band-name.patch
2022-11-14 17:10:34 +08:00

35 lines
1012 B
Diff

From 6caab26bf40c3a909d5a6cbd7f71ea64d5131636 Mon Sep 17 00:00:00 2001
From: gl-dengxinfa <xinfa.deng@gl-inet.com>
Date: Thu, 10 Nov 2022 15:09:06 +0800
Subject: [PATCH] fix: change band name
---
.../package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh
index e3f7a3564..4927d576a 100755
--- a/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/openwrt-18.06/package/kernel/mac80211/files/lib/wifi/mac80211.sh
@@ -82,7 +82,7 @@ detect_mac80211() {
ht_capab=""
ssidprefix=""
noscan="0"
- band="2.4G"
+ band="2g"
htcodex="0"
txpower="20"
@@ -93,7 +93,7 @@ detect_mac80211() {
mode_band="a"
channel="161"
ssidprefix="-5G"
- band="5G"
+ band="5g"
txpower="25"
iw phy "$dev" info | grep -q 'VHT Capabilities' && htmode="VHT80"
}
--
2.34.1