From c4cca8087b85ee569b450a9b4ea91eb7f0b8a3d4 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Dec 2008 20:44:36 +0100 Subject: [PATCH] Only try to connect to available networks --- plugins/wifi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 7599063..6dafad4 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -198,7 +198,8 @@ static void connect_known_networks(struct connman_element *device) struct connman_element *element = list->data; if (element->policy == CONNMAN_ELEMENT_POLICY_AUTO && - element->remember == TRUE) { + element->remember == TRUE && + element->available == TRUE) { if (network_enable(element) == 0) return; } -- 1.7.9.5