[solved] Enable/disable wlan connection

How can I start/stop a wlan connection with uci/ssh?
I only find this: https://openwrt.org/docs/guide-quick-start/basic_wifi
But when I do this the complete wlan/radio is off. I want to start/stop a seperate wifi connection liks this:

config wifi-iface 'wifinet1'
option device 'radio0'
option mode 'sta'
option network 'wwan'
option ssid 'Wlan-Router'
option encryption 'psk2'
option key 'my_password'

disabled boolean no 0 When set to 1, wireless network is disabled.

Yes, I did ist like this:

uci set wireless.wifinet1.disabled=0
uci commit wireless
wifi reload

Thanx ...

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.