service: Stay at ready state with a preferred technology
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 25 Apr 2012 08:35:03 +0000 (11:35 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 25 Apr 2012 08:38:12 +0000 (10:38 +0200)
Stay at ready state with a preferred technology also when the
online check fails. Otherwise we end up in an endless autoconnect
loop with two preferred WiFi networks where neither one goes to
online.

Print out a warning message when the online check fails.

src/service.c

index 1f0807b..8814754 100644 (file)
@@ -4863,7 +4863,8 @@ int __connman_service_online_check_failed(struct connman_service *service,
        /* currently we only retry IPv6 stuff */
        if (type == CONNMAN_IPCONFIG_TYPE_IPV4 ||
                        service->online_check_count != 1) {
-               __connman_service_auto_connect();
+               connman_warn("Online check failed for %p %s", service,
+                       service->name);
                return 0;
        }