commit 1b4c6e9be83b8eb4c0d824abedc638abd7f44152
parent befa4480179d8e4364df2576470e98c17ceaadc7
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 29 Jul 2021 15:21:46 -0700
knownnetworks: copy network_config on update
The network_config was not being copied to network_info when
updated. This caused any new settings to be lost if the network
configuration file was updated during runtime.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/knownnetworks.c b/src/knownnetworks.c
@@ -464,6 +464,8 @@ void known_network_update(struct network_info *network,
}
known_network_set_autoconnect(network, new->is_autoconnectable);
+
+ memcpy(&network->config, new, sizeof(struct network_config));
}
bool known_networks_foreach(known_networks_foreach_func_t function,