summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2022-01-05 10:36:03 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2022-01-05 10:36:09 +0900
commit58cf5caf6640c874dbc3fd919f8a421f292fea4a (patch)
tree657420cb40a26ee32399fed0c430b4113b2cfc62
parent1c8a8e7588e90a60234ee77d8f04a74f552658ba (diff)
downloadconnman-58cf5caf6640c874dbc3fd919f8a421f292fea4a.tar.gz
connman-58cf5caf6640c874dbc3fd919f8a421f292fea4a.tar.bz2
connman-58cf5caf6640c874dbc3fd919f8a421f292fea4a.zip
Enable ipv6 again after removing autoconfigured address
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
-rwxr-xr-xsrc/ipconfig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 8c21db5d..7d4be738 100755
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -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);