summaryrefslogtreecommitdiff
path: root/utils/loc_cfg.cpp
diff options
context:
space:
mode:
authorAshish Dhiman <dhiman@codeaurora.org>2018-08-03 13:58:18 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-08-08 04:07:02 -0700
commitf8f7e876e3fc95e08988cfe4ab0218b68c9fb5a5 (patch)
tree04d229235f2032e6739a516212a17557f3c0bd81 /utils/loc_cfg.cpp
parent4bab73548d6c030cb4a30ac07b068b35e0553af4 (diff)
downloadgps-f8f7e876e3fc95e08988cfe4ab0218b68c9fb5a5.tar.gz
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
Diffstat (limited to 'utils/loc_cfg.cpp')
-rw-r--r--utils/loc_cfg.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp
index fd232bb..4c3bc58 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",