#启用2.4G wifi
uci set wireless.radio0.disabled=0
#设置2.4G wifi模式为802.11ax,频宽为20MHz
uci set wireless.radio0.htmode=HE20
#设置2.4G wifi信道为6
uci set wireless.radio0.channel=6
#禁用2.4G wifi的弱信号剔除功能
uci set wireless.default_radio0.disassoc_low_ack=0
#设置2.4G wifi网络名称为CR660X_2.4G
uci set wireless.default_radio0.ssid=CR660X_2.4G
#设置2.4G wifi密码为1234567890
uci set wireless.default_radio0.key=1234567890
#设置2.4G wifi加密模式为WPA2 Personal (PSK)
uci set wireless.default_radio0.encryption=psk2+ccmp
#启用5G wifi
uci set wireless.radio1.disabled=0
#设置5G wifi模式为802.11ax,频宽为80MHz
uci set wireless.radio1.hwmode=11ax
uci set wireless.radio1.htmode=HE80
#设置5G wifi信道为40
uci set wireless.radio1.channel=40
#禁用5G wifi的弱信号剔除功能
uci set wireless.default_radio1.disassoc_low_ack=0
#设置5G wifi网络名称为CR660X_5G
uci set wireless.default_radio1.ssid=CR660X_5G
#设置5G wifi密码为1234567890
uci set wireless.default_radio1.key=1234567890
#设置5G wifi加密模式为WPA2/WPA3 Personal (PSK/SAE) mixed mode
uci set wireless.default_radio1.encryption=sae-mixed
#提交上述配置修改并应用
uci commit wireless
#启动wifi
wifi up
参考文档:https://openwrt.org/docs/guide-user/network/wifi/basic
文章评论