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
This commit is contained in:
Mike Cailean 2018-05-24 11:09:33 -07:00
parent dab99a6cb5
commit 745505e5be
3 changed files with 14 additions and 0 deletions

View file

@ -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;

View file

@ -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

View file

@ -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