diff options
author | Dante Russo <drusso@codeaurora.org> | 2017-07-14 11:22:57 -0700 |
---|---|---|
committer | Dante Russo <drusso@codeaurora.org> | 2017-07-14 11:26:42 -0700 |
commit | 1bd0de5d87278a63b0b7a9b956e02ddfa1eeea47 (patch) | |
tree | b50cd7aa2c92f4aeb143cb603f9bfa77b82ed098 /android | |
parent | 86786d166a8ee8a8a8b389f942c08b70eab5c4dd (diff) | |
download | gps-1bd0de5d87278a63b0b7a9b956e02ddfa1eeea47.tar.gz |
Fix yearOfHw as 2016 pre ES SUPL concurrency
Add capability bit for Nmea Debug, which
is a marker for modem support of concurrent
emergency supl session and normal gps session.
CRs-fixed: 2068217
Change-Id: Iea1ee7b56bfdd28643928edf0475cf21257de64c
Diffstat (limited to 'android')
-rw-r--r-- | android/location_api/GnssAPIClient.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/android/location_api/GnssAPIClient.cpp b/android/location_api/GnssAPIClient.cpp index f12cd62..5270576 100644 --- a/android/location_api/GnssAPIClient.cpp +++ b/android/location_api/GnssAPIClient.cpp @@ -301,9 +301,12 @@ void GnssAPIClient::onCapabilitiesCb(LocationCapabilitiesMask capabilitiesMask) } if (mGnssCbIface != nullptr) { IGnssCallback::GnssSystemInfo gnssInfo; - gnssInfo.yearOfHw = 2015; - if (capabilitiesMask & LOCATION_CAPABILITIES_GNSS_MEASUREMENTS_BIT) { + if (capabilitiesMask & LOCATION_CAPABILITIES_DEBUG_NMEA_BIT) { gnssInfo.yearOfHw = 2017; + } else if (capabilitiesMask & LOCATION_CAPABILITIES_GNSS_MEASUREMENTS_BIT) { + gnssInfo.yearOfHw = 2016; + } else { + gnssInfo.yearOfHw = 2015; } LOC_LOGV("%s:%d] set_system_info_cb (%d)", __FUNCTION__, __LINE__, gnssInfo.yearOfHw); auto r = mGnssCbIface->gnssSetSystemInfoCb(gnssInfo); |