summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-24 06:56:19 -0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-24 06:56:19 -0800
commitc7fdd26c2410fc18195baa313700a47fa76fec67 (patch)
tree966e79ce6bfac56b9152e61df51c7f7e6b6151e5 /plugins/ethernet.c
parent4ffb42c8fb8f0d9c2189ba6fbcb1fded222cb68d (diff)
downloadconnman-c7fdd26c2410fc18195baa313700a47fa76fec67.tar.gz
connman-c7fdd26c2410fc18195baa313700a47fa76fec67.tar.bz2
connman-c7fdd26c2410fc18195baa313700a47fa76fec67.zip
Set Ethernet connected after assigning the network group
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r--plugins/ethernet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 87c71acf..734523ae 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -103,9 +103,10 @@ static void add_network(struct connman_device *device)
}
connman_network_set_available(network, TRUE);
- connman_network_set_connected(network, TRUE);
connman_network_set_group(network, "cable");
+
+ connman_network_set_connected(network, TRUE);
}
static void ethernet_newlink(unsigned flags, unsigned change, void *user_data)