summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-01 06:23:55 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-07-01 06:23:55 -0700
commitbce87dffa9157ec6d9ee9621b526e72f4798d906 (patch)
tree29e07d0a48000da279b9175a2dc1cc5f933677de /plugins/ethernet.c
parent9231447b24192dbe4a5796d9daeb87ec1882371c (diff)
downloadconnman-bce87dffa9157ec6d9ee9621b526e72f4798d906.tar.gz
connman-bce87dffa9157ec6d9ee9621b526e72f4798d906.tar.bz2
connman-bce87dffa9157ec6d9ee9621b526e72f4798d906.zip
Fix handling of connect/disconnect for Ethernet devices
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r--plugins/ethernet.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 2851bf50..2f9cf0f5 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -138,9 +138,7 @@ static int ethernet_connect(struct connman_device *device)
if (!(ethernet->flags & IFF_LOWER_UP))
return -ENOTCONN;
- connman_device_set_carrier(device, TRUE);
-
- return 0;
+ return connman_device_set_connected(device, TRUE);
}
static int ethernet_disconnect(struct connman_device *device)
@@ -152,9 +150,7 @@ static int ethernet_disconnect(struct connman_device *device)
if (!(ethernet->flags & IFF_LOWER_UP))
return -ENOTCONN;
- connman_device_set_carrier(device, FALSE);
-
- return 0;
+ return connman_device_set_connected(device, FALSE);
}
static struct connman_device_driver ethernet_driver = {