Do I need to restart the network after WiFi enable/disable?

My CLI commands to enable WiFi are:

uci set wireless.@wifi-iface[0].disabled='0'
uci commit
service network restart

But the last one restarts the full network, and this is not always desired.
Well, I must admit it actually creates just a bit of lag, but is it possible to enable/disable the wireless network without such a complete restarting?

wifi help

Yes just run wifi with no parameters.

1 Like

Also /etc/init.d/network give you some options too.

  • reload (should only restart what's changed)

Checked your suggestions.
The best method until now:

uci set wireless.@wifi-iface[0].disabled='0'
uci commit
wifi reload

This method seems not to produce any lag, at least when testing it with ping (obtained 100% consecutive sequence).

The /etc/init.d/network reload method produce a small 2-3 pings lag (still better than the original service network restart , with 4-6 pings lost)

Thanks you all for your ideas.

1 Like

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