3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

wired: Handle replacing of storage files correctly

This commit is contained in:
Marcel Holtmann 2018-10-04 23:28:03 +02:00
parent 70f58f640d
commit d7dbbf66a0

View File

@ -91,11 +91,14 @@ static void network_create(const char *name)
struct network *net;
net = network_lookup(name);
if (!net) {
if (net) {
l_debug("Refresh network '%s'", net->name);
return;
}
net = network_new(name);
l_queue_push_tail(network_list, net);
}
}
static void network_remove(const char *name)
{
@ -111,10 +114,10 @@ static void network_reload(const char *name)
struct network *net;
net = network_lookup(name);
if (!net)
return;
if (net) {
l_debug("Refresh network '%s'", net->name);
return;
}
}
struct l_settings *network_lookup_security(const char *network)