diff options
-rw-r--r-- | src/device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 6aeed017..2a8e7dab 100644 --- a/src/device.c +++ b/src/device.c @@ -967,6 +967,11 @@ int connman_device_set_powered(struct connman_device *device, if (device->powered == powered) return -EALREADY; + if (powered == TRUE) + __connman_device_enable(device); + else + __connman_device_disable(device); + device->powered = powered; device->powered_pending = powered; |