X-OpenWrt/CustomFiles/d-team_newifi-d2_mac80211.p...

22 lines
891 B
Diff
Raw Normal View History

--- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
2022-01-23 14:37:15 +00:00
@@ -174,14 +174,15 @@ detect_mac80211() {
set wireless.radio${devidx}.channel=${channel}
2021-08-03 10:40:50 +00:00
set wireless.radio${devidx}.band=${mode_band}
2022-01-23 14:37:15 +00:00
set wireless.radio${devidx}.htmode=$htmode
+ set wireless.radio${devidx}.country=CN
2021-08-03 10:40:50 +00:00
set wireless.radio${devidx}.disabled=0
2022-01-23 14:37:15 +00:00
- set wireless.radio${devidx}.country=US
2021-08-03 10:40:50 +00:00
-
+
set wireless.default_radio${devidx}=wifi-iface
set wireless.default_radio${devidx}.device=radio${devidx}
2022-01-23 14:37:15 +00:00
+ set wireless.default_radio0.ssid=OpenWrt_2.4G
+ set wireless.default_radio1.ssid=OpenWrt_5G
2021-08-03 10:40:50 +00:00
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}.encryption=none
EOF
uci -q commit wireless