aredn/patches/706-MeshNode-SSID.patch

31 lines
1.1 KiB
Diff

--- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
@@ -167,6 +167,12 @@
dev_id="set wireless.radio${devidx}.macaddr=$(cat /sys/class/ieee80211/${dev}/macaddress)"
fi
+ if [ "${mode_band}" = "a" ]; then
+ arednssid="MeshNode5G"
+ else
+ arednssid="MeshNode2G"
+ fi
+
uci -q batch <<-EOF
set wireless.radio${devidx}=wifi-device
set wireless.radio${devidx}.type=mac80211
@@ -174,13 +180,12 @@
set wireless.radio${devidx}.channel=${channel}
set wireless.radio${devidx}.band=${mode_band}
set wireless.radio${devidx}.htmode=$htmode
- set wireless.radio${devidx}.disabled=1
set wireless.default_radio${devidx}=wifi-iface
set wireless.default_radio${devidx}.device=radio${devidx}
set wireless.default_radio${devidx}.network=lan
set wireless.default_radio${devidx}.mode=ap
- set wireless.default_radio${devidx}.ssid=OpenWrt
+ set wireless.default_radio${devidx}.ssid=${arednssid}
set wireless.default_radio${devidx}.encryption=none
EOF
uci -q commit wireless