#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
-#include <ITapiSim.h>
-#include <TapiUtility.h>
#include "log.h"
#include "util.h"
#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 */
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) {