diff options
author | Shinru Han <shinruhan@google.com> | 2020-02-13 16:55:41 +0800 |
---|---|---|
committer | Shinru Han <shinruhan@google.com> | 2020-02-14 12:09:42 +0800 |
commit | 5b2a2ed82c174b46692a15536e6a19561e3b5f7c (patch) | |
tree | 7dc31be46d66266a615d7c41ec0d0aa7b664b94a | |
parent | 21b02b0b59e62e7712c1239e96d8ea1ab8ce9f0f (diff) | |
download | gps-5b2a2ed82c174b46692a15536e6a19561e3b5f7c.tar.gz |
Comment out LPP in HAL
Set LPP only by MBN configs
Test: Insert several SIMs and check if LPP value is same as MBN config.
Bug: 149258305
Change-Id: I581fec739ad5cbe85f08e025b9289ee902ff5415
-rw-r--r-- | gnss/GnssAdapter.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index b2a7633..d8be31d 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -794,7 +794,6 @@ GnssAdapter::setConfig() mLocApi->convertLppProfile(gpsConf.LPP_PROFILE); gnssConfigRequested.aGlonassPositionProtocolMask = gpsConf.A_GLONASS_POS_PROTOCOL_SELECT; - /* Let HAL do nothing to LPPe, just set it by MBN if (gpsConf.LPPE_CP_TECHNOLOGY) { gnssConfigRequested.flags |= GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT; gnssConfigRequested.lppeControlPlaneMask = @@ -806,7 +805,7 @@ GnssAdapter::setConfig() gnssConfigRequested.lppeUserPlaneMask = mLocApi->convertLppeUp(gpsConf.LPPE_UP_TECHNOLOGY); } - */ + gnssConfigRequested.blacklistedSvIds.assign(mBlacklistedSvIds.begin(), mBlacklistedSvIds.end()); mLocApi->sendMsg(new LocApiMsg( @@ -995,6 +994,7 @@ std::vector<LocationError> GnssAdapter::gnssUpdateConfig(const std::string& oldM } if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { + /* Let HAL do nothing here, just set it by MBN if (gnssConfigNeedEngineUpdate.flags & GNSS_CONFIG_FLAGS_LPP_PROFILE_VALID_BIT) { err = mLocApi->setLPPConfigSync(gnssConfigRequested.lppProfile); @@ -1002,10 +1002,12 @@ std::vector<LocationError> GnssAdapter::gnssUpdateConfig(const std::string& oldM errsList[index] = err; } } + */ index++; } if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { + /* Let HAL do nothing here, just set it by MBN if (gnssConfigNeedEngineUpdate.flags & GNSS_CONFIG_FLAGS_LPPE_CONTROL_PLANE_VALID_BIT) { err = mLocApi->setLPPeProtocolCpSync( @@ -1014,10 +1016,12 @@ std::vector<LocationError> GnssAdapter::gnssUpdateConfig(const std::string& oldM errsList[index] = err; } } + */ index++; } if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { + /* Let HAL do nothing here, just set it by MBN if (gnssConfigNeedEngineUpdate.flags & GNSS_CONFIG_FLAGS_LPPE_USER_PLANE_VALID_BIT) { err = mLocApi->setLPPeProtocolUpSync( @@ -1026,6 +1030,7 @@ std::vector<LocationError> GnssAdapter::gnssUpdateConfig(const std::string& oldM errsList[index] = err; } } + */ index++; } |