Ingnore the offline operation of the blocked device
authorMartin Xu <martin.xu@intel.com>
Fri, 27 Aug 2010 06:10:32 +0000 (14:10 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Aug 2010 06:42:29 +0000 (08:42 +0200)
src/device.c

index e782bb5..7bd9e47 100644 (file)
@@ -1340,6 +1340,9 @@ static void set_offlinemode(struct connman_element *element, gpointer user_data)
 
        device->offlinemode = offlinemode;
 
+       if (device->blocked == TRUE)
+               return;
+
        powered = (offlinemode == TRUE) ? FALSE : TRUE;
 
        if (device->powered == powered)