mirror of
https://github.com/OpenMANET/morse-feed.git
synced 2025-12-10 03:43:06 -06:00
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:
parent
30f05c49ef
commit
b30876a751
@ -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
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user