device: Support already powered up devices
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 29 Nov 2010 16:43:28 +0000 (17:43 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 29 Nov 2010 16:43:28 +0000 (17:43 +0100)
src/device.c

index 91806b74dc5994046aa07b5e870038522c86ba41..7f2b54fd82a0fafb6a409525a45885c4ec89d4d1 100644 (file)
@@ -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;