2022-12-22 13:22:49 -07:00
|
|
|
--- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
|
|
|
|
+++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
|
|
|
|
@@ -167,6 +167,12 @@
|
2018-11-27 22:37:59 -07:00
|
|
|
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
|
2023-12-06 11:12:11 -07:00
|
|
|
@@ -203,13 +203,13 @@
|
|
|
|
set wireless.${name}.channel=${channel}
|
|
|
|
set wireless.${name}.band=${mode_band}
|
|
|
|
set wireless.${name}.htmode=$htmode
|
|
|
|
- set wireless.${name}.disabled=1
|
2018-03-31 09:51:01 -06:00
|
|
|
|
2023-12-06 11:12:11 -07:00
|
|
|
set wireless.default_${name}=wifi-iface
|
|
|
|
set wireless.default_${name}.device=${name}
|
|
|
|
set wireless.default_${name}.network=lan
|
|
|
|
set wireless.default_${name}.mode=ap
|
|
|
|
- set wireless.default_${name}.ssid=OpenWrt
|
|
|
|
+ set wireless.default_${name}.ssid=${arednssid}
|
|
|
|
+ set wireless.default_${name}.ifname=$(echo ${name} | sed s/radio/wlan/)
|
|
|
|
set wireless.default_${name}.encryption=none
|
2018-03-31 09:51:01 -06:00
|
|
|
EOF
|
|
|
|
uci -q commit wireless
|