summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index e3d4d04e..87e3533b 100644
--- a/src/device.c
+++ b/src/device.c
@@ -206,6 +206,9 @@ int __connman_device_enable(struct connman_device *device)
if (device->powered_pending == TRUE)
return -EALREADY;
+ if (device->blocked == TRUE)
+ return -ENOLINK;
+
err = device->driver->enable(device);
if (err < 0) {
if (err == -EINPROGRESS)