ipconfig: Do not enable IPv6 ipconfigs when loading the properties
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 19 Mar 2012 12:50:38 +0000 (13:50 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 20 Mar 2012 10:03:27 +0000 (12:03 +0200)
When enabling IPv6 when loading the Service properties, the Service
state machine gets out of sync when AutoConnect is disabled.

At this point we should only load the properties and let the
Service state machine decide when to enable the ipconfigs.
And the good news is that the core handles this already.

src/ipconfig.c

index 79aed71..65ea278 100644 (file)
@@ -2196,9 +2196,6 @@ int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,
                        ipconfig->ipv6_privacy_config = string2privacy(privacy);
                        g_free(pprefix);
                        g_free(privacy);
-
-                       __connman_ipconfig_enable(ipconfig);
-                       enable_ipv6(ipconfig);
                }
        }