From 745505e5bea3ff9be676d7a539a854cf62711b76 Mon Sep 17 00:00:00 2001 From: Mike Cailean Date: Thu, 24 May 2018 11:09:33 -0700 Subject: [PATCH] Vote for internal modem only Vote for internal modem only in power vote temporary fix until we process a .jsn file Change-Id: I732f920a0c18976b0f1323501e0e5541b11d5887 CRs-fixed: 2247589 --- core/ContextBase.cpp | 3 +++ core/ContextBase.h | 1 + etc/gps.conf | 10 ++++++++++ 3 files changed, 14 insertions(+) diff --git a/core/ContextBase.cpp b/core/ContextBase.cpp index e7ee8bf1..5695544a 100644 --- a/core/ContextBase.cpp +++ b/core/ContextBase.cpp @@ -71,6 +71,7 @@ const loc_param_s_type ContextBase::mGps_conf_table[] = {"EXTERNAL_DR_ENABLED", &mGps_conf.EXTERNAL_DR_ENABLED, NULL, 'n'}, {"SUPL_HOST", &mGps_conf.SUPL_HOST, NULL, 's'}, {"SUPL_PORT", &mGps_conf.SUPL_PORT, NULL, 'n'}, + {"MODEM_TYPE", &mGps_conf.MODEM_TYPE, NULL, 'n' }, }; const loc_param_s_type ContextBase::mSap_conf_table[] = @@ -122,6 +123,8 @@ void ContextBase::readConfig() mGps_conf.LPPE_CP_TECHNOLOGY = 0; /* By default no LPPe UP technology is enabled*/ mGps_conf.LPPE_UP_TECHNOLOGY = 0; + /* By default we use unknown modem type*/ + mGps_conf.MODEM_TYPE = 2; /*Defaults for sap.conf*/ mSap_conf.GYRO_BIAS_RANDOM_WALK = 0; diff --git a/core/ContextBase.h b/core/ContextBase.h index e7edb296..fca381f3 100644 --- a/core/ContextBase.h +++ b/core/ContextBase.h @@ -67,6 +67,7 @@ typedef struct loc_gps_cfg_s uint32_t EXTERNAL_DR_ENABLED; char SUPL_HOST[MAX_SUPL_SERVER_URL_LENGTH]; uint32_t SUPL_PORT; + uint32_t MODEM_TYPE; } loc_gps_cfg_s_type; /* NOTE: the implementaiton of the parser casts number diff --git a/etc/gps.conf b/etc/gps.conf index 7653408d..51c0b965 100644 --- a/etc/gps.conf +++ b/etc/gps.conf @@ -229,3 +229,13 @@ PROPAGATION_TIME_UNCERTAINTY = 1 # INTERNET_IP_TYPE = 4 # SUPL_APN = abc.xyz # SUPL_IP_TYPE = 4 + +##################################### +# Modem type +##################################### +# This setting configures modem type +# (external=0 or internal=1) +# comment out the next line to vote +# for the first modem in the list +MODEM_TYPE = 1 +