summaryrefslogtreecommitdiff
path: root/gnss
diff options
context:
space:
mode:
authorDante Russo <drusso@codeaurora.org>2018-06-04 16:55:56 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-06-13 16:23:59 -0700
commit271cfd8a00f97f13a937877cc8ef66ef0392a087 (patch)
tree87a2908d338851fc12e6294e364fc2f074c84c4b /gnss
parentb150a53ee3f02c8441754fcc6834802da7d96f40 (diff)
downloadgps-271cfd8a00f97f13a937877cc8ef66ef0392a087.tar.gz
Report yearOfHw=2018 when P features are supported
Support of features AGPM or Constellation Control mean that we report yearOfHW as 2018 Change-Id: I01b7a3ce7f8b38569cf419cf07fef1d55da5f149 CRs-fixed: 2254698
Diffstat (limited to 'gnss')
-rw-r--r--gnss/GnssAdapter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp
index dbfbb74..98a3249 100644
--- a/gnss/GnssAdapter.cpp
+++ b/gnss/GnssAdapter.cpp
@@ -1880,6 +1880,12 @@ GnssAdapter::getCapabilities()
if (ContextBase::isFeatureSupported(LOC_SUPPORTED_FEATURE_DEBUG_NMEA_V02)) {
mask |= LOCATION_CAPABILITIES_DEBUG_NMEA_BIT;
}
+ if (ContextBase::isFeatureSupported(LOC_SUPPORTED_FEATURE_CONSTELLATION_ENABLEMENT_V02)) {
+ mask |= LOCATION_CAPABILITIES_CONSTELLATION_ENABLEMENT_BIT;
+ }
+ if (ContextBase::isFeatureSupported(LOC_SUPPORTED_FEATURE_AGPM_V02)) {
+ mask |= LOCATION_CAPABILITIES_AGPM_BIT;
+ }
return mask;
}