ipconfig: Do not disable IPv6 in lower up state
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 15 Jan 2013 14:11:26 +0000 (16:11 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 16 Jan 2013 14:52:58 +0000 (16:52 +0200)
Disabling IPv6 in lower up causes problems in IPv6 connectivity.
The interface IPv6 status can stay in disabled state because of
races. So this patch reverts the commit 4ce90440a70abce7de537777
and lets service IPv6 state go to READY when we get an auto
configured address for the interface.

Fixes BMC#25929

src/ipconfig.c

index 7fba53b..b400894 100644 (file)
@@ -391,18 +391,6 @@ static void __connman_ipconfig_lower_up(struct connman_ipdevice *ipdevice)
 {
        DBG("ipconfig ipv4 %p ipv6 %p", ipdevice->config_ipv4,
                                        ipdevice->config_ipv6);
-
-       if (ipdevice->config_ipv6 != NULL &&
-                       ipdevice->config_ipv6->enabled == TRUE)
-               return;
-
-       if (ipdevice->ifname == NULL)
-               return;
-
-       if (__connman_device_isfiltered(ipdevice->ifname) == FALSE) {
-               ipdevice->ipv6_enabled = get_ipv6_state(ipdevice->ifname);
-               set_ipv6_state(ipdevice->ifname, FALSE);
-       }
 }
 
 static void __connman_ipconfig_lower_down(struct connman_ipdevice *ipdevice)