# 2.4G 新增 201/202/203
for i in 201 202 203; do
    uci add wireless wifi-iface
    uci set wireless.@wifi-iface[-1].device='radio0'
    uci set wireless.@wifi-iface[-1].network="lan$i"
    uci set wireless.@wifi-iface[-1].mode='ap'
    uci set wireless.@wifi-iface[-1].ssid="192.168.${i}.1_2G"
    uci set wireless.@wifi-iface[-1].encryption='psk-mixed'
    uci set wireless.@wifi-iface[-1].key='tk66666666'
done

# 5G 新增 201/202/203
for i in 201 202 203; do
    uci add wireless wifi-iface
    uci set wireless.@wifi-iface[-1].device='radio1'
    uci set wireless.@wifi-iface[-1].network="lan$i"
    uci set wireless.@wifi-iface[-1].mode='ap'
    uci set wireless.@wifi-iface[-1].ssid="192.168.${i}.1_5G"
    uci set wireless.@wifi-iface[-1].encryption='psk-mixed'
    uci set wireless.@wifi-iface[-1].key='tk66666666'
done

uci commit wireless
wifi reload          # 让无线配置立即生效