wizard-config/morse-modeswitch-button: (APP-3710, PR #926) disable powersave on Artini STAs

Since power is not a concern for Artini (since they're intended as network
extenders, not lower power clients), let's avoid the latency
hit caused by powersave in the default config.


Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
This commit is contained in:
James Haggerty 2024-11-08 03:14:00 +00:00 committed by Arien Judge
parent 30f05c49ef
commit b30876a751
2 changed files with 9 additions and 0 deletions

View File

@ -64,7 +64,10 @@ uci set "wireless.default_$_morse_device_name.mode=$mode"
if [ "$mode" = "sta" ]; then
# Switch to dhcp client and turn off server.
# Disable powersave since this is currently only used for
# Artini Extenders (i.e. where power is not a concern).
uci batch <<- END
set wireless.default_$_morse_device_name.powersave=0
delete wireless.default_$_morse_device_name.ssid
delete wireless.default_$_morse_device_name.mesh_id
delete wireless.default_$_morse_device_name.key

View File

@ -250,6 +250,9 @@ function apply_config (uci, config) {
check_config(config, ["country", "ssid", "key", "encryption"]);
uci.set("wireless", morse_device, "country", config.country);
uci.set("wireless", morse_iface, "mode", "sta");
// Disable powersave since this is only used for Extenders where
// power is not a concern (powersave causes higher latency).
uci.set("wireless", morse_iface, "powersave", "0")
uci.set("wireless", morse_iface, "ssid", config.ssid);
uci.set("wireless", morse_iface, "key", config.key);
uci.set("wireless", morse_iface, "encryption", config.encryption);
@ -290,6 +293,9 @@ function apply_config (uci, config) {
uci.set("wireless", backhaul_sta, "device", morse_device);
uci.set("wireless", backhaul_sta, "network", "lan");
uci.set("wireless", backhaul_sta, "mode", "sta");
// Disable powersave since this is only used for Extenders where
// power is not a concern (powersave causes higher latency).
uci.set("wireless", backhaul_sta, "powersave", "0")
uci.set("wireless", backhaul_sta, "ssid", config.ssid);
uci.set("wireless", backhaul_sta, "key", config.key);
uci.set("wireless", backhaul_sta, "multi_ap", "1");