From b19ff823ceacd443eb539e18158c2a8b0b3449dd Mon Sep 17 00:00:00 2001 From: Lienol <23146169+Lienol@users.noreply.github.com> Date: Tue, 13 Jul 2021 00:47:16 +0800 Subject: [PATCH] mac80211: set default config --- package/kernel/mac80211/files/lib/wifi/mac80211.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh index 75036331a9..aecfbaf800 100644 --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh @@ -169,7 +169,7 @@ detect_mac80211() { fi ssid="OpenWrt" - [ "$mode_band" = "a" ] && ssid="${ssid}_5G" + [ "$mode_band" != "" -a "$mode_band" != "2g" ] && ssid="${ssid}_5G" uci -q batch <<-EOF set wireless.radio${devidx}=wifi-device