summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 12bc7da..9f88dfa 100644
--- a/src/device.c
+++ b/src/device.c
@@ -595,6 +595,11 @@ int connman_device_set_powered(struct connman_device *device,
return 0;
}
+connman_bool_t connman_device_get_powered(struct connman_device *device)
+{
+ return device->powered;
+}
+
static int device_scan(struct connman_device *device)
{
if (!device->driver || !device->driver->scan)