Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d113d89 authored by Jack He's avatar Jack He
Browse files

GD-HCI Shim: Add missing cmds that do not generate cmd complete

* When sending those events over GD HCI shim, we should not expect
  command complete events

Bug: 164980031
Tag: #gd-refactor
Test: manually pair with LE devices after enabling HCI shim
Change-Id: I0b9aac7a038d64197795db5b03098d8587a6ef6f
parent 6c317800
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -86,15 +86,23 @@ bool IsCommandStatusOpcode(bluetooth::hci::OpCode op_code) {
    case bluetooth::hci::OpCode::SWITCH_ROLE:
    case bluetooth::hci::OpCode::FLOW_SPECIFICATION:
    case bluetooth::hci::OpCode::REFRESH_ENCRYPTION_KEY:
    case bluetooth::hci::OpCode::ENHANCED_FLUSH:
    case bluetooth::hci::OpCode::LE_CREATE_CONNECTION:
    case bluetooth::hci::OpCode::LE_CONNECTION_UPDATE:
    case bluetooth::hci::OpCode::LE_READ_REMOTE_FEATURES:
    case bluetooth::hci::OpCode::LE_START_ENCRYPTION:
    case bluetooth::hci::OpCode::LE_READ_LOCAL_P_256_PUBLIC_KEY_COMMAND:
    case bluetooth::hci::OpCode::LE_GENERATE_DHKEY_COMMAND:
    case bluetooth::hci::OpCode::LE_SET_PHY:
    case bluetooth::hci::OpCode::LE_EXTENDED_CREATE_CONNECTION:
    case bluetooth::hci::OpCode::LE_PERIODIC_ADVERTISING_CREATE_SYNC:
    case bluetooth::hci::OpCode::ENHANCED_FLUSH:
    case bluetooth::hci::OpCode::LE_ACCEPT_CIS_REQUEST:
    case bluetooth::hci::OpCode::LE_CREATE_BIG:
    case bluetooth::hci::OpCode::LE_TERMINATE_BIG:
    case bluetooth::hci::OpCode::LE_BIG_CREATE_SYNC:
    case bluetooth::hci::OpCode::LE_REQUEST_PEER_SCA:
    case bluetooth::hci::OpCode::LE_READ_REMOTE_TRANSMIT_POWER_LEVEL:

      return true;
    default:
      return false;