summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-11-29 17:43:28 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-11-29 17:43:28 +0100
commit84af388dd11ae917a40aca48f2156306be4821ec (patch)
tree23f6e22ee3b1ca7a7fea67c7d92c42a7fef82130 /src/device.c
parent6d3811f1bd54475c0f14e05c48775c7387cded63 (diff)
downloadconnman-84af388dd11ae917a40aca48f2156306be4821ec.tar.gz
connman-84af388dd11ae917a40aca48f2156306be4821ec.tar.bz2
connman-84af388dd11ae917a40aca48f2156306be4821ec.zip
device: Support already powered up devices
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 91806b74..7f2b54fd 100644
--- a/src/device.c
+++ b/src/device.c
@@ -632,7 +632,7 @@ int connman_device_set_powered(struct connman_device *device,
else
err = __connman_device_disable(device);
- if (err < 0 && err != -EINPROGRESS)
+ if (err < 0 && err != -EINPROGRESS && err != -EALREADY)
return err;
device->powered = powered;