小米路由器_r2d:小米路由器手工设置_wifi_国家码
小米路由器手工设置WiFi国家码
先列出小米路由器的无线硬件配置。
root@XiaoQiang:/etc/init.d# uci show wireless wireless.wl0=wifi-device wireless.wl0.type=broadcom wireless.wl0.channel=0 wireless.wl0.txpwr=mid wireless.wl0.hwmode=11ac wireless.wl0.hwband=5G wireless.wl0.autoch=2 wireless.wl0.bw=0 wireless.wl0.disabled=1 wireless.@wifi-iface[0]=wifi-iface wireless.@wifi-iface[0].device=wl0 wireless.@wifi-iface[0].ifname=wl0 wireless.@wifi-iface[0].network=lan wireless.@wifi-iface[0].mode=ap wireless.@wifi-iface[0].ssid=Test_5G wireless.@wifi-iface[0].key=test2009 wireless.@wifi-iface[0].encryption=psk2 wireless.@wifi-iface[0].hidden=0 wireless.wl1=wifi-device wireless.wl1.type=broadcom wireless.wl1.channel=0 wireless.wl1.hwmode=11ng wireless.wl1.hwband=2_4G wireless.wl1.autoch=2 wireless.wl1.bw=0 wireless.wl1.txpwr=min wireless.wl1.disabled=0 wireless.@wifi-iface[1]=wifi-iface wireless.@wifi-iface[1].device=wl1 wireless.@wifi-iface[1].ifname=wl1 wireless.@wifi-iface[1].network=lan wireless.@wifi-iface[1].mode=ap wireless.@wifi-iface[1].ssid=Test wireless.@wifi-iface[1].key=test2009 wireless.@wifi-iface[1].encryption=psk2 wireless.@wifi-iface[1].hidden=0 wireless.miwifi_ready=wifi-iface wireless.miwifi_ready.ifname=wl1.3 wireless.miwifi_ready.network=ready wireless.miwifi_ready.encryption=none wireless.miwifi_ready.device=wl1 wireless.miwifi_ready.mode=ap wireless.miwifi_ready.hidden=1 wireless.miwifi_ready.ssid=miwifi_ready
设置国家无线代码,用法是查看这个WiFi硬件代号 wireless.wl0=wifi-device 从上面可以看出小米的2个无线,2.4Ghz是wireless.wl1,5Ghz是wireless.wl0
- # uci set [无线的硬件代号].country=US
root@XiaoQiang:/etc/init.d# uci set wireless.wl1.country=US root@XiaoQiang:/etc/init.d# uci set wireless.wl0.country=US root@XiaoQiang:/etc/init.d# uci show wireless.wl0.country wireless.wl0.country=US root@XiaoQiang:/etc/init.d# uci show wireless.wl1.country wireless.wl1.country=US
顺便把默认的隐藏WiFi关闭算了,减少潜在风险。
root@XiaoQiang:/etc/init.d# uci set wireless.miwifi_ready.disable=1
然后提交保存,重启硬件生效配置。
root@XiaoQiang:/etc/init.d# uci commit wireless root@XiaoQiang:/etc/init.d# /etc/init.d/network reload
小米路由器_r2d/小米路由器手工设置_wifi_国家码.txt · 最后更改: 2019/10/06 18:16 由 127.0.0.1