Remove params duplicate check for DSDS issue
Filtering duplicated updates causes issues to parameters that have multiple copies in the modem. Remove the check. Change-Id: I3e62bdee0f5d2a4dd005e3ab5a31f14109213d95 CRs-fixed: 2481714
This commit is contained in:
parent
526cdba778
commit
18eb6db486
1 changed files with 10 additions and 38 deletions
|
@ -1088,12 +1088,7 @@ GnssAdapter::gnssUpdateConfigCommand(GnssConfig config)
|
|||
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT) {
|
||||
uint32_t newSuplVersion =
|
||||
mAdapter.convertSuplVersion(gnssConfigRequested.suplVersion);
|
||||
if (newSuplVersion != ContextBase::mGps_conf.SUPL_VER &&
|
||||
ContextBase::mGps_conf.AGPS_CONFIG_INJECT) {
|
||||
ContextBase::mGps_conf.SUPL_VER = newSuplVersion;
|
||||
} else {
|
||||
gnssConfigNeedEngineUpdate.flags &= ~(GNSS_CONFIG_FLAGS_SUPL_VERSION_VALID_BIT);
|
||||
}
|
||||
ContextBase::mGps_conf.SUPL_VER = newSuplVersion;
|
||||
index++;
|
||||
}
|
||||
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_SET_ASSISTANCE_DATA_VALID_BIT) {
|
||||
|
@ -1112,47 +1107,26 @@ GnssAdapter::gnssUpdateConfigCommand(GnssConfig config)
|
|||
}
|
||||
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) {
|
||||
uint32_t newLppProfile = mAdapter.convertLppProfile(gnssConfigRequested.lppProfile);
|
||||
if (newLppProfile != ContextBase::mGps_conf.LPP_PROFILE &&
|
||||
ContextBase::mGps_conf.AGPS_CONFIG_INJECT) {
|
||||
ContextBase::mGps_conf.LPP_PROFILE = newLppProfile;
|
||||
} else {
|
||||
gnssConfigNeedEngineUpdate.flags &= ~(GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT);
|
||||
}
|
||||
ContextBase::mGps_conf.LPP_PROFILE = newLppProfile;
|
||||
index++;
|
||||
}
|
||||
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) {
|
||||
uint32_t newLppeControlPlaneMask =
|
||||
mAdapter.convertLppeCp(gnssConfigRequested.lppeControlPlaneMask);
|
||||
if (newLppeControlPlaneMask != ContextBase::mGps_conf.LPPE_CP_TECHNOLOGY) {
|
||||
ContextBase::mGps_conf.LPPE_CP_TECHNOLOGY = newLppeControlPlaneMask;
|
||||
} else {
|
||||
gnssConfigNeedEngineUpdate.flags &=
|
||||
~(GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT);
|
||||
}
|
||||
mAdapter.convertLppeCp(gnssConfigRequested.lppeControlPlaneMask);
|
||||
ContextBase::mGps_conf.LPPE_CP_TECHNOLOGY = newLppeControlPlaneMask;
|
||||
index++;
|
||||
}
|
||||
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) {
|
||||
uint32_t newLppeUserPlaneMask =
|
||||
mAdapter.convertLppeUp(gnssConfigRequested.lppeUserPlaneMask);
|
||||
if (newLppeUserPlaneMask != ContextBase::mGps_conf.LPPE_UP_TECHNOLOGY) {
|
||||
ContextBase::mGps_conf.LPPE_UP_TECHNOLOGY = newLppeUserPlaneMask;
|
||||
} else {
|
||||
gnssConfigNeedEngineUpdate.flags &=
|
||||
~(GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT);
|
||||
}
|
||||
mAdapter.convertLppeUp(gnssConfigRequested.lppeUserPlaneMask);
|
||||
ContextBase::mGps_conf.LPPE_UP_TECHNOLOGY = newLppeUserPlaneMask;
|
||||
index++;
|
||||
}
|
||||
if (gnssConfigRequested.flags &
|
||||
GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT) {
|
||||
uint32_t newAGloProtMask =
|
||||
mAdapter.convertAGloProt(gnssConfigRequested.aGlonassPositionProtocolMask);
|
||||
if (newAGloProtMask != ContextBase::mGps_conf.A_GLONASS_POS_PROTOCOL_SELECT &&
|
||||
ContextBase::mGps_conf.AGPS_CONFIG_INJECT) {
|
||||
ContextBase::mGps_conf.A_GLONASS_POS_PROTOCOL_SELECT = newAGloProtMask;
|
||||
} else {
|
||||
gnssConfigNeedEngineUpdate.flags &=
|
||||
~(GNSS_CONFIG_FLAGS_AGLONASS_POSITION_PROTOCOL_VALID_BIT);
|
||||
}
|
||||
mAdapter.convertAGloProt(gnssConfigRequested.aGlonassPositionProtocolMask);
|
||||
ContextBase::mGps_conf.A_GLONASS_POS_PROTOCOL_SELECT = newAGloProtMask;
|
||||
index++;
|
||||
}
|
||||
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_EM_PDN_FOR_EM_SUPL_VALID_BIT) {
|
||||
|
@ -1173,10 +1147,8 @@ GnssAdapter::gnssUpdateConfigCommand(GnssConfig config)
|
|||
}
|
||||
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_SUPL_MODE_BIT) {
|
||||
uint32_t newSuplMode = mAdapter.convertSuplMode(gnssConfigRequested.suplModeMask);
|
||||
if (newSuplMode != ContextBase::mGps_conf.SUPL_MODE) {
|
||||
ContextBase::mGps_conf.SUPL_MODE = newSuplMode;
|
||||
mAdapter.broadcastCapabilities(mAdapter.getCapabilities());
|
||||
}
|
||||
ContextBase::mGps_conf.SUPL_MODE = newSuplMode;
|
||||
mAdapter.broadcastCapabilities(mAdapter.getCapabilities());
|
||||
index++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue