int connman_device_set_powered(struct connman_device *device,
connman_bool_t powered);
+connman_bool_t connman_device_get_powered(struct connman_device *device);
int connman_device_set_scanning(struct connman_device *device,
connman_bool_t scanning);
connman_bool_t connman_device_get_scanning(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)