From f8f7e876e3fc95e08988cfe4ab0218b68c9fb5a5 Mon Sep 17 00:00:00 2001 From: Ashish Dhiman Date: Fri, 3 Aug 2018 13:58:18 +0530 Subject: [PATCH] Disable GTP CELL and GTP WAA feature. Disable GTP_CELL and GTP WAA feature as it will not work with GTP_AP_MODE 4 CRs-Fixed: 2288722 Change-Id: I88cbb05030c1588fb2be30c3de41839208bb14c0 --- utils/loc_cfg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp index fd232bbc..4c3bc588 100644 --- a/utils/loc_cfg.cpp +++ b/utils/loc_cfg.cpp @@ -491,9 +491,7 @@ static const loc_param_s_type gps_conf_parameter_table[] = { /* location feature conf, e.g.: izat.conf feature mode table*/ static const loc_param_s_type loc_feature_conf_table[] = { {"GTP_CELL_PROC", &conf.feature_gtp_cell_proc, NULL, 's'}, - {"GTP_CELL", &conf.feature_gtp_cell, NULL, 's'}, {"GTP_WIFI", &conf.feature_gtp_wifi, NULL, 's'}, - {"GTP_WAA", &conf.feature_gtp_waa, NULL, 's'}, {"SAP", &conf.feature_sap, NULL, 's'}, {"ODCPI", &conf.feature_odcpi, NULL, 's'}, {"FREE_WIFI_SCAN_INJECT", &conf.feature_free_wifi_scan_inject, NULL, 's'}, @@ -612,6 +610,8 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p gtp_cell_ap_enabled = 1; } + //by default make it disabled as it will not work with GTP_AP_MODE 4 + strlcpy (conf.feature_gtp_cell, "DISABLED", sizeof (conf.feature_gtp_cell)); if(strcmp(conf.feature_gtp_cell, "PREMIUM") == 0) { LOC_LOGE("%s:%d]: Error: location feature GTP CELL does not support PREMIUM mode" \ " available modes are BASIC and DISABLED. Starting feature in BASIC mode", @@ -648,6 +648,7 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p } //Set service mask for GTP_WAA + strlcpy (conf.feature_gtp_waa, "DISABLED", sizeof (conf.feature_gtp_waa)); if(strcmp(conf.feature_gtp_waa, "PREMIUM") == 0) { LOC_LOGE("%s:%d]: Error: location feature GTP WAA does not support PREMIUM mode" \ " available modes are BASIC and DISABLED. Starting feature in BASIC mode",