mirror of https://github.com/aredn/aredn.git
32 lines
1.1 KiB
Diff
32 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
|
|
@@ -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
|
|
|
|
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
|
|
EOF
|
|
uci -q commit wireless
|