2018-08-23 18:33:06 -06:00
|
|
|
Index: openwrt/package/kernel/mac80211/files/lib/wifi/mac80211.sh
|
|
|
|
===================================================================
|
|
|
|
--- openwrt.orig/package/kernel/mac80211/files/lib/wifi/mac80211.sh
|
|
|
|
+++ openwrt/package/kernel/mac80211/files/lib/wifi/mac80211.sh
|
2018-11-27 22:37:59 -07:00
|
|
|
@@ -106,6 +106,12 @@ detect_mac80211() {
|
|
|
|
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
|
|
|
|
@@ -113,13 +119,12 @@ detect_mac80211() {
|
2018-03-31 09:51:01 -06:00
|
|
|
set wireless.radio${devidx}.hwmode=11${mode_band}
|
|
|
|
${dev_id}
|
|
|
|
${ht_capab}
|
|
|
|
- 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
|
2018-11-27 22:37:59 -07:00
|
|
|
+ set wireless.default_radio${devidx}.ssid=${arednssid}
|
2018-03-31 09:51:01 -06:00
|
|
|
set wireless.default_radio${devidx}.encryption=none
|
|
|
|
EOF
|
|
|
|
uci -q commit wireless
|