diff options
author | Mike Cailean <quic_mcailean@quicinc.com> | 2021-12-21 11:34:04 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-01-02 18:56:35 -0800 |
commit | 6628c47fa80a9819c754290e23e02453600bab37 (patch) | |
tree | 60893d4c4c6996f8d56155e7276dad779cd337e5 | |
parent | 52d589b5364eef931202ee06a2f40591c7788743 (diff) |
SUPL NI PO must be unconditionally accepted in HAL
Change-Id: Icb4dca6f1772a48385ee1c3b4ba2fe89ecf66f94
CRs-fixed: 3098539
-rw-r--r-- | gnss/GnssAdapter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 2f8e95e..8fcc147 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -4646,6 +4646,10 @@ GnssAdapter::requestNiNotifyEvent(const GnssNiNotification ¬ify, const void* -NOT Privacy Override option -NFW is locked and config item NI_SUPL_DENY_ON_NFW_LOCKED = 1 */ mApi.informNiResponse(GNSS_NI_RESPONSE_DENY, mData); + } else if ((GNSS_NI_TYPE_SUPL == mNotify.type || + GNSS_NI_TYPE_EMERGENCY_SUPL == mNotify.type) + && (GNSS_NI_OPTIONS_PRIVACY_OVERRIDE_BIT & mNotify.options)) { + mApi.informNiResponse(GNSS_NI_RESPONSE_ACCEPT, mData); } else if (GNSS_NI_TYPE_EMERGENCY_SUPL == mNotify.type) { bInformNiAccept = bIsInEmergency || (GNSS_CONFIG_SUPL_EMERGENCY_SERVICES_NO == ContextBase::mGps_conf.SUPL_ES); @@ -4661,10 +4665,6 @@ GnssAdapter::requestNiNotifyEvent(const GnssNiNotification ¬ify, const void* } else { mAdapter.requestNiNotify(mNotify, mData, false); } - } else if ((GNSS_NI_TYPE_SUPL == mNotify.type || - GNSS_NI_TYPE_EMERGENCY_SUPL == mNotify.type) - && (GNSS_NI_OPTIONS_PRIVACY_OVERRIDE_BIT & mNotify.options)) { - mApi.informNiResponse(GNSS_NI_RESPONSE_ACCEPT, mData); } else { mAdapter.requestNiNotify(mNotify, mData, false); } |