device: Do not use the disconnected flag for auto connection
authorMohamed Abbas <mabbas@linux.intel.com>
Thu, 23 Dec 2010 09:26:39 +0000 (10:26 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 23 Dec 2010 11:45:47 +0000 (12:45 +0100)
The whole auto connection process is now handled from
service_auto_connect().

src/device.c

index c71529e..6eef940 100644 (file)
@@ -854,9 +854,6 @@ int connman_device_set_scanning(struct connman_device *device,
        if (device->connections > 0)
                return 0;
 
-       if (device->disconnected == TRUE)
-               return 0;
-
        __connman_service_auto_connect();
 
        return 0;