Hi,
To help people to find why the network is not working, I need to have the
carrier information for the ethernet device (to known if the cable is plug-in
or if it's the dhcp server that doesn't respond). It's a little patch to get
this information from connman.
Luc
diff --git a/src/device.c b/src/device.c
index 0af3ccd..06a7c98 100644
--- a/src/device.c
+++ b/src/device.c
@@ -388,6 +388,10 @@ static DBusMessage *get_properties(DBusConnection *conn,
connman_dbus_dict_append_variant(&dict, "Powered",
DBUS_TYPE_BOOLEAN, &device->powered);
+ if (device->mode == CONNMAN_DEVICE_MODE_TRANSPORT_IP)
+ connman_dbus_dict_append_variant(&dict, "Carrier",
+ DBUS_TYPE_BOOLEAN, &device->carrier);
+
if (device->driver && device->driver->scan)
connman_dbus_dict_append_variant(&dict, "Scanning",
DBUS_TYPE_BOOLEAN, &device->scanning);
_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman