diff options
author | Dante Russo <drusso@codeaurora.org> | 2018-08-02 13:57:51 -0700 |
---|---|---|
committer | Dante Russo <drusso@codeaurora.org> | 2018-08-02 14:34:57 -0700 |
commit | 12b33020949e491c60aaf17ca23a09de0456c3a4 (patch) | |
tree | 9e827172c153c61df7affee8193200c139e122d2 /gnss | |
parent | 27114f21cc1964cecad7686cdd8ff7be7d055968 (diff) | |
download | gps-12b33020949e491c60aaf17ca23a09de0456c3a4.tar.gz |
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
Diffstat (limited to 'gnss')
-rw-r--r-- | gnss/GnssAdapter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 43b7e59..25addc8 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; |