diff options
author | Mike Cailean <mcailean@codeaurora.org> | 2018-05-24 11:09:33 -0700 |
---|---|---|
committer | Mike Cailean <mcailean@codeaurora.org> | 2018-06-06 11:14:40 -0700 |
commit | 745505e5bea3ff9be676d7a539a854cf62711b76 (patch) | |
tree | 84799976bfd6bcf3cf8a5703d3eb12ac551e375e /core | |
parent | dab99a6cb5df2a5af29434af0e5b70aa257efdb8 (diff) | |
download | gps-745505e5bea3ff9be676d7a539a854cf62711b76.tar.gz |
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
Diffstat (limited to 'core')
-rw-r--r-- | core/ContextBase.cpp | 3 | ||||
-rw-r--r-- | core/ContextBase.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/ContextBase.cpp b/core/ContextBase.cpp index e7ee8bf..5695544 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 e7edb29..fca381f 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 |