diff options
author | Roshan Pius <rpius@google.com> | 2017-07-17 13:10:01 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-07-17 13:21:23 -0700 |
commit | 08df76ec0de84d9ea1339e7165c1a12b1dc152e5 (patch) | |
tree | 96e79217694b27d58ebcfb93e525abc31a46f051 /wifi/1.1/default/hidl_struct_util.cpp | |
parent | be3cb04f37bb04fcbc8f59cf5be2204975c38b5d (diff) |
wifi: Add the missing RTT capabilities
These feature flags are defined in the legacy HAL, but were not exposed in the HIDL
interface.
Updated the hash in current.txt using 'hidl-gen -L hash -r
android.hardware.wifi@1.1:hardware/interfaces -r
android.hardware:hardware/interfaces -r
android.hidl:system/libhidl/transport
android.hardware.wifi@1.1::IWifiChip'
Bug: 63545934
Test: Manual testing
Change-Id: Ia196e0fc1c5e305210ec95eb8a54b1a1204ebf20
Diffstat (limited to 'wifi/1.1/default/hidl_struct_util.cpp')
-rw-r--r-- | wifi/1.1/default/hidl_struct_util.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wifi/1.1/default/hidl_struct_util.cpp b/wifi/1.1/default/hidl_struct_util.cpp index a413cbb39b..6b93b9ef15 100644 --- a/wifi/1.1/default/hidl_struct_util.cpp +++ b/wifi/1.1/default/hidl_struct_util.cpp @@ -75,6 +75,10 @@ V1_1::IWifiChip::ChipCapabilityMask convertLegacyFeatureToHidlChipCapability( switch (feature) { case WIFI_FEATURE_SET_TX_POWER_LIMIT: return HidlChipCaps::SET_TX_POWER_LIMIT; + case WIFI_FEATURE_D2D_RTT: + return HidlChipCaps::D2D_RTT; + case WIFI_FEATURE_D2AP_RTT: + return HidlChipCaps::D2AP_RTT; }; CHECK(false) << "Unknown legacy feature: " << feature; return {}; @@ -133,7 +137,9 @@ bool convertLegacyFeaturesToHidlChipCapabilities( *hidl_caps |= convertLegacyLoggerFeatureToHidlChipCapability(feature); } } - for (const auto feature : {WIFI_FEATURE_SET_TX_POWER_LIMIT}) { + for (const auto feature : {WIFI_FEATURE_SET_TX_POWER_LIMIT, + WIFI_FEATURE_D2D_RTT, + WIFI_FEATURE_D2AP_RTT}) { if (feature & legacy_feature_set) { *hidl_caps |= convertLegacyFeatureToHidlChipCapability(feature); } |