diff options
author | Mike Cailean <mcailean@codeaurora.org> | 2019-04-30 14:44:12 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-05-01 10:17:26 -0700 |
commit | 8890e5aeeeb972ea937d8a84f0e8507120a956b9 (patch) | |
tree | 8c67169931484ae9002c367b70a2621f8a37f95f | |
parent | 0330e79d4a87db7e1ee358f0e87a49d34c8f3690 (diff) | |
download | gps-8890e5aeeeb972ea937d8a84f0e8507120a956b9.tar.gz |
When sending GPS LOCK status to XTRA mask NFW bit
Change-Id: Icdc26358627abf4097dcb8dc4fb35af039fd921d
CRs-fixed: 2444862
-rw-r--r-- | gnss/XtraSystemStatusObserver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnss/XtraSystemStatusObserver.cpp b/gnss/XtraSystemStatusObserver.cpp index 6e1902c..b1c48d7 100644 --- a/gnss/XtraSystemStatusObserver.cpp +++ b/gnss/XtraSystemStatusObserver.cpp @@ -57,7 +57,9 @@ using namespace loc_core; #define LOG_TAG "LocSvc_XSSO" bool XtraSystemStatusObserver::updateLockStatus(GnssConfigGpsLock lock) { - mGpsLock = lock; + // mask NI(NFW bit) since from XTRA's standpoint GPS is enabled if + // MO(AFW bit) is enabled and disabled when MO is disabled + mGpsLock = lock & ~GNSS_CONFIG_GPS_LOCK_NI; if (!mReqStatusReceived) { return true; |