summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-19 21:14:53 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-19 21:14:53 +0200
commitd5e17aeab210cc4ef3aa8d5485d29ebb42d46625 (patch)
treeaad09d706c51fd71069fc9dd3368c03e99d7bc36
parent580929d1b2a6c08b0cd68e2d57e7e5d1d06d30d0 (diff)
downloadconnman-d5e17aeab210cc4ef3aa8d5485d29ebb42d46625.tar.gz
connman-d5e17aeab210cc4ef3aa8d5485d29ebb42d46625.tar.bz2
connman-d5e17aeab210cc4ef3aa8d5485d29ebb42d46625.zip
Ensure updates of connected technologies for Ethernet
-rw-r--r--src/device.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index f8413596..4de39d52 100644
--- a/src/device.c
+++ b/src/device.c
@@ -230,6 +230,18 @@ static int set_connected(struct connman_device *device,
CONNMAN_SERVICE_STATE_IDLE);
}
+ if (connected == TRUE) {
+ enum connman_service_type type;
+
+ type = __connman_device_get_service_type(device);
+ __connman_notifier_connect(type);
+ } else {
+ enum connman_service_type type;
+
+ type = __connman_device_get_service_type(device);
+ __connman_notifier_disconnect(type);
+ }
+
return 0;
}