summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ipconfig.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 399e4927..af5666db 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -550,6 +550,13 @@ 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;
+
+ set_ipv6_state(ipdevice->ifname, FALSE);
+ ipdevice->ipv6_enabled = FALSE;
}
static void __connman_ipconfig_lower_down(struct connman_ipdevice *ipdevice)