commit | f0593c926ec0bf891a0805870dcbc0bc7ff5c764 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Oct 01 16:09:10 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 01 16:09:10 2021 +0000 |
tree | 3f3e1724963e2e1935e3f5c5cc0b37e25a910912 | |
parent | 677f624bad8fc82b3e6a97fa4de148d6147fb6e8 [diff] | |
parent | 4043aebe5008ae0c9df613398df5b89d2b3376b6 [diff] |
Merge "Allow DualModeController to support newer Commands" am: 4043aebe50 Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1826653 Change-Id: I55d37904821f5603170dda9b60e852af263f42da
diff --git a/system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc b/system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc index 7b833c9..830bebf 100644 --- a/system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc +++ b/system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc
@@ -98,15 +98,13 @@ method(std::move(param)); \ }; -#define SET_SUPPORTED(name, method) \ - SET_HANDLER(name, method); \ - { \ - uint16_t index = (uint16_t)bluetooth::hci::OpCodeIndex::name; \ - uint16_t byte_index = index / 10; \ - uint8_t bit = 1 << (index % 10); \ - if (byte_index < 36) { \ - supported_commands[byte_index] = supported_commands[byte_index] | bit; \ - } \ +#define SET_SUPPORTED(name, method) \ + SET_HANDLER(name, method); \ + { \ + uint16_t index = (uint16_t)bluetooth::hci::OpCodeIndex::name; \ + uint16_t byte_index = index / 10; \ + uint8_t bit = 1 << (index % 10); \ + supported_commands[byte_index] = supported_commands[byte_index] | bit; \ } SET_SUPPORTED(RESET, Reset);