diff options
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r-- | plugins/ethernet.c | 8 |
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 = { |