Get cellular IPv6 profile and then enable clatd. 55/212255/2
authorNiraj Kumar Goit <niraj.g@samsung.com>
Mon, 19 Aug 2019 09:34:19 +0000 (15:04 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Wed, 21 Aug 2019 06:28:34 +0000 (11:58 +0530)
Change-Id: I9daac7bd93b6c796657faebd5a87abba99b8a29f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
src/clatd-handler.c

index 4d442f4..557943f 100755 (executable)
@@ -77,6 +77,11 @@ int netconfig_clatd_enable(void)
                return 0;
        }
 
+       if (!netconfig_get_connected_cellular_internet_ipv6only_profile(&hint)) {
+               ERR("Failed to get cellular profile");
+               return -1;
+       }
+
        const char *if_name = netconfig_get_default_ifname();
        if (if_name == NULL) {
                int idx;