When sending GPS LOCK status to XTRA mask NFW bit

Change-Id: Icdc26358627abf4097dcb8dc4fb35af039fd921d
CRs-fixed: 2444862
This commit is contained in:
Mike Cailean 2019-04-30 14:44:12 -07:00 committed by Gerrit - the friendly Code Review server
parent 0330e79d4a
commit 8890e5aeee

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;