Merge changes Ib324dffb,Id4e05e6e into tizen
[platform/core/connectivity/net-config.git] / src / network-state.c
index 0afa303..4c26944 100755 (executable)
@@ -26,8 +26,6 @@
 #include <arpa/inet.h>
 #include <netinet/in.h>
 #include <sys/ioctl.h>
-#include <ITapiSim.h>
-#include <TapiUtility.h>
 
 #include "log.h"
 #include "util.h"
@@ -40,7 +38,6 @@
 #include "network-dpm.h"
 #include "network-monitor.h"
 #include "netsupplicant.h"
-#include "wifi-tel-intf.h"
 
 #include "generated-code.h"
 /* Define TCP buffer sizes for various networks */
@@ -322,19 +319,9 @@ static void __netconfig_adjust_tcp_buffer_size(void)
                rmax_size = NET_TCP_BUFFERSIZE_WIFI_RMEM_MAX;
                wmax_size = NET_TCP_BUFFERSIZE_WIFI_WMEM_MAX;
        } else if (netconfig_is_cellular_profile(profile) == TRUE) {
-               TapiHandle *tapi_handle = NULL;
                int telephony_svctype = 0, telephony_pstype = 0;
 
-               tapi_handle = (TapiHandle *)netconfig_tel_init();
-               if (NULL != tapi_handle) {
-                       tel_get_property_int(tapi_handle,
-                                       TAPI_PROP_NETWORK_SERVICE_TYPE,
-                                       &telephony_svctype);
-                       tel_get_property_int(tapi_handle, TAPI_PROP_NETWORK_PS_TYPE,
-                                       &telephony_pstype);
-                       netconfig_tel_deinit();
-               }
-
+               netconfig_get_telephony_network_type(&telephony_svctype, &telephony_pstype);
                DBG("Default cellular %d, %d", telephony_svctype, telephony_pstype);
 
                switch (telephony_pstype) {