3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +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,10 +91,13 @@ static void network_create(const char *name)
struct network *net; struct network *net;
net = network_lookup(name); net = network_lookup(name);
if (!net) { if (net) {
l_debug("Refresh network '%s'", net->name);
return;
}
net = network_new(name); net = network_new(name);
l_queue_push_tail(network_list, net); l_queue_push_tail(network_list, net);
}
} }
static void network_remove(const char *name) static void network_remove(const char *name)
@ -111,10 +114,10 @@ static void network_reload(const char *name)
struct network *net; struct network *net;
net = network_lookup(name); net = network_lookup(name);
if (!net) if (net) {
return;
l_debug("Refresh network '%s'", net->name); l_debug("Refresh network '%s'", net->name);
return;
}
} }
struct l_settings *network_lookup_security(const char *network) struct l_settings *network_lookup_security(const char *network)