Only connect known networks when in inactive state
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 15 Dec 2008 02:41:03 +0000 (03:41 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 15 Dec 2008 02:41:03 +0000 (03:41 +0100)
plugins/wifi.c

index b7eea7b..9cddb61 100644 (file)
@@ -247,7 +247,7 @@ static void state_change(struct connman_element *device,
        }
 
 reconnect:
-       if (state == STATE_INACTIVE || state == STATE_DISCONNECTED) {
+       if (state == STATE_INACTIVE) {
                data->connected = FALSE;
                connect_known_networks(device);
        }