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:
parent
befa448017
commit
1b4c6e9be8
|
@ -464,6 +464,8 @@ void known_network_update(struct network_info *network,
|
||||||
}
|
}
|
||||||
|
|
||||||
known_network_set_autoconnect(network, new->is_autoconnectable);
|
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,
|
bool known_networks_foreach(known_networks_foreach_func_t function,
|
||||||
|
|
Loading…
Reference in New Issue