Firmware script to set wifi to specific values and also make Wi-Fi enabled?

The device is TP-Link BE450 on 25.12.2
wifi up radio0 or radio1
doesn't work on the terminal. It used to work on older devices.
How do we do this? This almost works but it doesn't enable Wi-Fi by default. I am talking about firmware selector btw:


uci set wireless.radio0.channel='13'
uci set wireless.radio0.htmode='HT20'
uci set wireless.radio0.country='TR'
uci set wireless.radio0.cell_density='0'
uci set wireless.default_radio0.ssid='OpenWrt_2.4G'
uci set wireless.default_radio0.encryption='psk2'
uci set wireless.default_radio0.key='12345678'

uci set wireless.radio1.channel='40'
uci set wireless.radio1.htmode='EHT80'
uci set wireless.radio1.country='TR'
uci set wireless.radio1.cell_density='0'
uci set wireless.default_radio1.ssid='OpenWrt_5G'
uci set wireless.default_radio1.encryption='psk2'
uci set wireless.default_radio1.key='12345678'
uci set wireless.radio0.disabled='0'
uci set wireless.radio1.disabled='0'
uci commit wireless
/etc/init.d/network restart
wifi reload

and what does this show before these commands?

uci show wireless

I understand that you would like to include it in the installation script it's just to see if you notice any differences

and

have you tried "wifi up" instead of "wifi reload" ?

Did you mean VHT80?

I don't know A* gave me that result, it must be VHT80 right, maybe because it's a Wi-Fi 7 router?

OpenWrt 25.12 I use below for 1st run script

uci delete wireless.default_radio0.disabled
uci delete wireless.default_radio1.disabled
1 Like