summaryrefslogtreecommitdiff
path: root/gnss
diff options
context:
space:
mode:
authorMike Cailean <mcailean@codeaurora.org>2019-07-30 18:35:42 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-08-02 11:22:30 -0700
commit818dacd2345041fd13ab96b5beefa1480689a519 (patch)
tree37b207afc08968e4d5c247b8422fb2bb7205c17e /gnss
parentf6586f43a386e6ff9de8d245b814b02ac45cafdb (diff)
downloadgps-818dacd2345041fd13ab96b5beefa1480689a519.tar.gz
GPS_LOCK has the wrong value after killing GNSS process
CRs-fixed: 2500864 Change-Id: I5b6cd779ef5c378eedfb54b74b29dbf3191784a1
Diffstat (limited to 'gnss')
-rw-r--r--gnss/GnssAdapter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp
index 252b76c..47e5527 100644
--- a/gnss/GnssAdapter.cpp
+++ b/gnss/GnssAdapter.cpp
@@ -1082,9 +1082,8 @@ GnssAdapter::gnssUpdateConfigCommand(GnssConfig config)
if (gnssConfigRequested.flags & GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT) {
GnssConfigGpsLock newGpsLock = gnssConfigRequested.gpsLock;
- if (GNSS_CONFIG_GPS_LOCK_NONE == newGpsLock) {
- newGpsLock = GNSS_CONFIG_GPS_LOCK_MO;
- }
+
+ newGpsLock |= GNSS_CONFIG_GPS_LOCK_MO;
ContextBase::mGps_conf.GPS_LOCK = newGpsLock;
/* If we get here it means that the changes in the framework to request for
'P' behavior were made, and therefore we need to "behave" as in 'P'
@@ -1102,7 +1101,7 @@ GnssAdapter::gnssUpdateConfigCommand(GnssConfig config)
in this case (return to 'P' code) */
if (mAdapter.mSupportNfwControl) {
// case 1 above
- newGpsLock &= ~GNSS_CONFIG_GPS_LOCK_NI;
+ newGpsLock = GNSS_CONFIG_GPS_LOCK_NONE;
} else {
// case 2 above
gnssConfigNeedEngineUpdate.flags &= ~(GNSS_CONFIG_FLAGS_GPS_LOCK_VALID_BIT);