[net-config] Remove clatd support 72/87972/1
authorSaurav Babu <saurav.babu@samsung.com>
Mon, 12 Sep 2016 10:44:09 +0000 (16:14 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Mon, 12 Sep 2016 10:44:09 +0000 (16:14 +0530)
Tizen 3.0 doesn't support clatd, so remove clatd support from net-config

Change-Id: Ib65e1731c86c51770752e98da01dae3bd435189a
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
CMakeLists.txt
src/network-state.c

index b6f03fb..54aeb69 100755 (executable)
@@ -39,7 +39,6 @@ SET(SRCS
        src/wifi-background-scan.c
        src/wifi-tel-intf.c
        src/wifi-config.c
-       src/clatd-handler.c
        )
 
 IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
index 54e5192..9b2b9c0 100755 (executable)
@@ -44,7 +44,6 @@
 #include "network-monitor.h"
 #include "netsupplicant.h"
 #include "wifi-tel-intf.h"
-#include "clatd-handler.h"
 
 #include "generated-code.h"
 /* Define TCP buffer sizes for various networks */
@@ -471,8 +470,6 @@ static void __netconfig_update_default_connection_info(void)
 
                DBG("Successfully clear IP and PROXY up");
 
-               /* Disable clatd if it is in running state */
-               netconfig_clatd_disable();
        } else if (profile != NULL) {
                char *old_ip = vconf_get_str(VCONFKEY_NETWORK_IP);
                char *old_proxy = vconf_get_str(VCONFKEY_NETWORK_PROXY);
@@ -494,10 +491,6 @@ static void __netconfig_update_default_connection_info(void)
 
                        netconfig_set_system_event(SYS_EVENT_NETWORK_STATUS,
                                EVT_KEY_NETWORK_STATUS, EVT_VAL_NETWORK_CELLULAR);
-
-                       /* Enable clatd if IPv6 is set and no IPv4 address */
-                       if (!ip_addr && ip_addr6)
-                               netconfig_clatd_enable();
                } else if (netconfig_is_ethernet_profile(profile) == TRUE) {
                        netconfig_set_vconf_int(VCONFKEY_NETWORK_STATUS, VCONFKEY_NETWORK_ETHERNET);
                        netconfig_set_system_event(SYS_EVENT_NETWORK_STATUS,
@@ -533,10 +526,6 @@ static void __netconfig_update_default_connection_info(void)
                netconfig_set_vconf_int(VCONFKEY_NETWORK_CONFIGURATION_CHANGE_IND, 1);
 
                DBG("Successfully update default network configuration");
-
-               /* Disable clatd if it is in running state */
-               if (netconfig_is_cellular_profile(profile) != TRUE)
-                       netconfig_clatd_disable();
        }
 
        __netconfig_adjust_tcp_buffer_size();