Merge "Reset MSA/MSB capabilities for APQ targets."
This commit is contained in:
commit
c5ee86bfdc
2 changed files with 72 additions and 56 deletions
|
@ -92,6 +92,9 @@ const loc_param_s_type ContextBase::mSap_conf_table[] =
|
|||
|
||||
void ContextBase::readConfig()
|
||||
{
|
||||
static bool confReadDone = false;
|
||||
if (!confReadDone) {
|
||||
confReadDone = true;
|
||||
/*Defaults for gps.conf*/
|
||||
mGps_conf.INTERMEDIATE_POS = 0;
|
||||
mGps_conf.ACCURACY_THRES = 0;
|
||||
|
@ -151,6 +154,17 @@ void ContextBase::readConfig()
|
|||
|
||||
UTIL_READ_CONF(LOC_PATH_GPS_CONF, mGps_conf_table);
|
||||
UTIL_READ_CONF(LOC_PATH_SAP_CONF, mSap_conf_table);
|
||||
|
||||
switch (getTargetGnssType(loc_get_target())) {
|
||||
case GNSS_GSS:
|
||||
case GNSS_AUTO:
|
||||
// For APQ targets, MSA/MSB capabilities should be reset
|
||||
mGps_conf.CAPABILITIES &= ~(LOC_GPS_CAPABILITY_MSA | LOC_GPS_CAPABILITY_MSB);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t ContextBase::getCarrierCapabilities() {
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
#define STR_MTP "MTP"
|
||||
#define STR_APQ "apq"
|
||||
#define STR_SDC "sdc" // alternative string for APQ targets
|
||||
#define STR_QCS "qcs" // string for Gen9 APQ targets
|
||||
#define STR_MSM "msm"
|
||||
#define STR_SDM "sdm" // alternative string for MSM targets
|
||||
#define STR_APQ_NO_WGR "baseband_apq_nowgr"
|
||||
|
@ -175,7 +176,8 @@ unsigned int loc_get_target(void)
|
|||
}
|
||||
|
||||
if( !memcmp(baseband, STR_APQ, LENGTH(STR_APQ)) ||
|
||||
!memcmp(baseband, STR_SDC, LENGTH(STR_SDC)) ) {
|
||||
!memcmp(baseband, STR_SDC, LENGTH(STR_SDC)) ||
|
||||
!memcmp(baseband, STR_QCS, LENGTH(STR_QCS)) ) {
|
||||
|
||||
if( !memcmp(rd_id, MPQ8064_ID_1, LENGTH(MPQ8064_ID_1))
|
||||
&& IS_STR_END(rd_id[LENGTH(MPQ8064_ID_1)]) )
|
||||
|
|
Loading…
Reference in a new issue