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 91806b7..7f2b54f 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;