From 12b33020949e491c60aaf17ca23a09de0456c3a4 Mon Sep 17 00:00:00 2001 From: Dante Russo Date: Thu, 2 Aug 2018 13:57:51 -0700 Subject: [PATCH] Skip position filtering for telematics When engine hub is loaded, e.g.: if any of the engine services are enabled in izat.conf, position filtering is skipped and all position (valid or invalid) will be reported to requesting client Change-Id: Idc340478c977d8da441211d4c81580987b0f4a29 CRs-fixed: 2290155 --- gnss/GnssAdapter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 43b7e598..25addc8e 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -2857,7 +2857,12 @@ GnssAdapter::needReport(const UlpLocation& ulpLocation, enum loc_sess_status status, LocPosTechMask techMask) { bool reported = false; - if (LOC_SESS_SUCCESS == status) { + + // if engine hub is enabled, aka, any of the engine services is enabled, + // then always output position reported by engine hub to requesting client + if (true == initEngHubProxy()) { + reported = true; + } else if (LOC_SESS_SUCCESS == status) { // this is a final fix LocPosTechMask mask = LOC_POS_TECH_MASK_SATELLITE | LOC_POS_TECH_MASK_SENSORS | LOC_POS_TECH_MASK_HYBRID;