Merge "When sending GPS LOCK status to XTRA mask NFW bit"

This commit is contained in:
qctecmdr 2019-05-03 10:17:24 -07:00 committed by Gerrit - the friendly Code Review server
commit 9ddd6b1349

View file

@ -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;