From 8a714e90ed686264d17e4eddd343c91075d10f27 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 15 Dec 2008 03:41:03 +0100 Subject: [PATCH] Only connect known networks when in inactive state --- plugins/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index b7eea7b..9cddb61 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -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); } -- 2.7.4