Enable ipv6 again after removing autoconfigured address 22/268922/1
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 5 Jan 2022 01:36:03 +0000 (10:36 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 5 Jan 2022 01:36:09 +0000 (10:36 +0900)
Until now, ipv6 has been disabled to remove autoconfigured addresses quickly
when wifi disconnecting.
However, as a result, the ipv6 link local address of wlan0 was erased,
which later affected the operation of using wlan0 like softap.
This patch restores ipv6 for consistency.

Change-Id: I7cf2790d39f62579b59083d6abb136763202b2bd

src/ipconfig.c

index 8c21db5..7d4be73 100755 (executable)
@@ -1773,8 +1773,10 @@ int __connman_ipconfig_disable(struct connman_ipconfig *ipconfig)
 
 #if defined TIZEN_EXT
                if (ipdevice->config_ipv6->method ==
-                               CONNMAN_IPCONFIG_METHOD_AUTO)
+                               CONNMAN_IPCONFIG_METHOD_AUTO) {
                        disable_ipv6(ipdevice->config_ipv6);
+                       enable_ipv6(ipdevice->config_ipv6);
+               }
 #endif
                connman_ipaddress_clear(ipdevice->config_ipv6->system);
                __connman_ipconfig_unref(ipdevice->config_ipv6);