diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-06-16 09:44:53 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-06-16 15:26:11 +0200 |
commit | 81530ed8aa05ce414dfa88999be5979451e0af09 (patch) | |
tree | 9320430184ad26afeeb48fc7d613433367b09cf4 /plugins/ethernet.c | |
parent | 2b2cb7b5ab0cb6da76d378242575c83b8188a769 (diff) | |
download | connman-81530ed8aa05ce414dfa88999be5979451e0af09.tar.gz connman-81530ed8aa05ce414dfa88999be5979451e0af09.tar.bz2 connman-81530ed8aa05ce414dfa88999be5979451e0af09.zip |
element: Remove network code
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r-- | plugins/ethernet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 2ccd4989..4829a33b 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -92,12 +92,15 @@ static void add_network(struct connman_device *device) if (network == NULL) return; + connman_network_register(network); + index = connman_device_get_index(device); connman_network_set_index(network, index); connman_network_set_name(network, "Wired"); if (connman_device_add_network(device, network) < 0) { + connman_network_unregister(network); connman_network_unref(network); return; } |