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);