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.
This commit is contained in:
James Prestwood 2021-07-29 15:21:46 -07:00 committed by Denis Kenzior
parent befa448017
commit 1b4c6e9be8
1 changed files with 2 additions and 0 deletions

View File

@ -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,