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

Commit 472afe0f authored by Myles Watson's avatar Myles Watson
Browse files

test_vendor: Remove unnecessary const from params

Change-Id: I6502e3e78f139722bb887640dcc00ee79f1b0044
parent 9998f435
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -476,17 +476,17 @@ class DualModeController {
                          const TaskCallback& callback);

  // Creates a command complete event and sends it back to the HCI.
  void SendCommandComplete(const uint16_t command_opcode,
  void SendCommandComplete(uint16_t command_opcode,
                           const std::vector<uint8_t>& return_parameters) const;

  // Sends a command complete event with no return parameters. This event is
  // typically sent for commands that can be completed immediately.
  void SendCommandCompleteSuccess(const uint16_t command_opcode) const;
  void SendCommandCompleteSuccess(uint16_t command_opcode) const;

  // Sends a command complete event with no return parameters. This event is
  // typically sent for commands that can be completed immediately.
  void SendCommandCompleteOnlyStatus(const uint16_t command_opcode,
                                     const uint8_t status) const;
  void SendCommandCompleteOnlyStatus(uint16_t command_opcode,
                                     uint8_t status) const;

  // Creates a command status event and sends it back to the HCI.
  void SendCommandStatus(uint8_t status, uint16_t command_opcode) const;
+42 −43
Original line number Diff line number Diff line
@@ -39,65 +39,64 @@ class EventPacket : public Packet {

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.7.1
  static std::unique_ptr<EventPacket> CreateInquiryCompleteEvent(
      const uint8_t status);
      uint8_t status);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.7.14
  // This should only be used for testing to send non-standard packets
  // Most code should use the more specific functions that follow
  static std::unique_ptr<EventPacket> CreateCommandCompleteEvent(
      const uint16_t command_opcode,
      uint16_t command_opcode,
      const std::vector<uint8_t>& event_return_parameters);

  static std::unique_ptr<EventPacket> CreateCommandCompleteOnlyStatusEvent(
      const uint16_t command_opcode, const uint8_t status);
      uint16_t command_opcode, uint8_t status);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.7.15
  static std::unique_ptr<EventPacket> CreateCommandStatusEvent(
      const uint8_t status, const uint16_t command_opcode);
      uint8_t status, uint16_t command_opcode);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.3.12
  static std::unique_ptr<EventPacket> CreateCommandCompleteReadLocalName(
      const uint8_t status, const std::string& local_name);
      uint8_t status, const std::string& local_name);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.1
  static std::unique_ptr<EventPacket>
  CreateCommandCompleteReadLocalVersionInformation(
      const uint8_t status,
      const uint8_t hci_version,
      const uint16_t hci_revision,
      const uint8_t lmp_pal_version,
      const uint16_t manufacturer_name,
      const uint16_t lmp_pal_subversion);
  CreateCommandCompleteReadLocalVersionInformation(uint8_t status,
                                                   uint8_t hci_version,
                                                   uint16_t hci_revision,
                                                   uint8_t lmp_pal_version,
                                                   uint16_t manufacturer_name,
                                                   uint16_t lmp_pal_subversion);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.2
  static std::unique_ptr<EventPacket>
  CreateCommandCompleteReadLocalSupportedCommands(
      const uint8_t status, const std::vector<uint8_t>& supported_commands);
      uint8_t status, const std::vector<uint8_t>& supported_commands);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.4
  static std::unique_ptr<EventPacket>
  CreateCommandCompleteReadLocalExtendedFeatures(
      const uint8_t status,
      const uint8_t page_number,
      const uint8_t maximum_page_number,
      const uint64_t extended_lmp_features);
      uint8_t status,
      uint8_t page_number,
      uint8_t maximum_page_number,
      uint64_t extended_lmp_features);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.5
  static std::unique_ptr<EventPacket> CreateCommandCompleteReadBufferSize(
      const uint8_t status,
      const uint16_t hc_acl_data_packet_length,
      const uint8_t hc_synchronous_data_packet_length,
      const uint16_t hc_total_num_acl_data_packets,
      const uint16_t hc_total_synchronous_data_packets);
      uint8_t status,
      uint16_t hc_acl_data_packet_length,
      uint8_t hc_synchronous_data_packet_length,
      uint16_t hc_total_num_acl_data_packets,
      uint16_t hc_total_synchronous_data_packets);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.6
  static std::unique_ptr<EventPacket> CreateCommandCompleteReadBdAddr(
      const uint8_t status, const BtAddress& bt_address);
      uint8_t status, const BtAddress& bt_address);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.8
  static std::unique_ptr<EventPacket>
  CreateCommandCompleteReadLocalSupportedCodecs(
      const uint8_t status,
      uint8_t status,
      const std::vector<uint8_t>& supported_codecs,
      const std::vector<uint32_t>& vendor_specific_codecs);

@@ -111,58 +110,58 @@ class EventPacket : public Packet {
  static std::unique_ptr<EventPacket> CreateInquiryResultEvent(
      const BtAddress& bt_address,
      const PageScanRepetitionMode page_scan_repetition_mode,
      const uint32_t class_of_device,
      const uint16_t clock_offset);
      uint32_t class_of_device,
      uint16_t clock_offset);

  void AddInquiryResult(const BtAddress& bt_address,
                        const PageScanRepetitionMode page_scan_repetition_mode,
                        const uint32_t class_of_device,
                        const uint16_t clock_offset);
                        uint32_t class_of_device,
                        uint16_t clock_offset);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.7.38
  static std::unique_ptr<EventPacket> CreateExtendedInquiryResultEvent(
      const BtAddress& bt_address,
      const PageScanRepetitionMode page_scan_repetition_mode,
      const uint32_t class_of_device,
      const uint16_t clock_offset,
      const uint8_t rssi,
      uint32_t class_of_device,
      uint16_t clock_offset,
      uint8_t rssi,
      const std::vector<uint8_t>& extended_inquiry_response);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.2
  static std::unique_ptr<EventPacket> CreateCommandCompleteLeReadBufferSize(
      const uint8_t status,
      const uint16_t hc_le_data_packet_length,
      const uint8_t hc_total_num_le_data_packets);
      uint8_t status,
      uint16_t hc_le_data_packet_length,
      uint8_t hc_total_num_le_data_packets);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.3
  static std::unique_ptr<EventPacket>
  CreateCommandCompleteLeReadLocalSupportedFeatures(const uint8_t status,
                                                    const uint64_t le_features);
  CreateCommandCompleteLeReadLocalSupportedFeatures(uint8_t status,
                                                    uint64_t le_features);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.14
  static std::unique_ptr<EventPacket> CreateCommandCompleteLeReadWhiteListSize(
      const uint8_t status, const uint8_t white_list_size);
      uint8_t status, uint8_t white_list_size);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.23
  static std::unique_ptr<EventPacket> CreateCommandCompleteLeRand(
      const uint8_t status, const uint64_t random_val);
      uint8_t status, uint64_t random_val);

  // Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.27
  static std::unique_ptr<EventPacket>
  CreateCommandCompleteLeReadSupportedStates(const uint8_t status,
                                             const uint64_t le_states);
  CreateCommandCompleteLeReadSupportedStates(uint8_t status,
                                             uint64_t le_states);

  // Vendor-specific commands (see hcidefs.h)

  static std::unique_ptr<EventPacket> CreateCommandCompleteLeVendorCap(
      const uint8_t status, const std::vector<uint8_t>& vendor_cap);
      uint8_t status, const std::vector<uint8_t>& vendor_cap);

  // Size of a data packet header, which consists of a 1 octet event code
  static const size_t kEventHeaderSize = 1;

 private:
  explicit EventPacket(const uint8_t event_code);
  EventPacket(const uint8_t event_code, const std::vector<uint8_t>& payload);
  explicit EventPacket(uint8_t event_code);
  EventPacket(uint8_t event_code, const std::vector<uint8_t>& payload);
};

}  // namespace test_vendor_lib
+10 −22
Original line number Diff line number Diff line
@@ -50,34 +50,22 @@ class Packet {
  // Add |octets| bytes to the payload.  Return true if:
  // - the size of |bytes| is equal to |octets| and
  // - the new size of the payload is still < |kMaxPacketOctets|
  bool AddPayloadOctets(const size_t octets, const std::vector<uint8_t>& bytes);
  bool AddPayloadOctets(size_t octets, const std::vector<uint8_t>& bytes);

 private:
  // Add |octets| bytes to the payload.  Return true if:
  // - the value of |value| fits in |octets| bytes and
  // - the new size of the payload is still < |kMaxPacketOctets|
  bool AddPayloadOctets(const size_t octets, const uint64_t value);
  bool AddPayloadOctets(size_t octets, uint64_t value);

 public:
  // Add type-checking versions
  bool AddPayloadOctets1(const uint8_t value) {
    return AddPayloadOctets(1, value);
  }
  bool AddPayloadOctets2(const uint16_t value) {
    return AddPayloadOctets(2, value);
  }
  bool AddPayloadOctets3(const uint32_t value) {
    return AddPayloadOctets(3, value);
  }
  bool AddPayloadOctets4(const uint32_t value) {
    return AddPayloadOctets(4, value);
  }
  bool AddPayloadOctets6(const uint64_t value) {
    return AddPayloadOctets(6, value);
  }
  bool AddPayloadOctets8(const uint64_t value) {
    return AddPayloadOctets(8, value);
  }
  bool AddPayloadOctets1(uint8_t value) { return AddPayloadOctets(1, value); }
  bool AddPayloadOctets2(uint16_t value) { return AddPayloadOctets(2, value); }
  bool AddPayloadOctets3(uint32_t value) { return AddPayloadOctets(3, value); }
  bool AddPayloadOctets4(uint32_t value) { return AddPayloadOctets(4, value); }
  bool AddPayloadOctets6(uint64_t value) { return AddPayloadOctets(6, value); }
  bool AddPayloadOctets8(uint64_t value) { return AddPayloadOctets(8, value); }

  // Add |address| to the payload.  Return true if:
  // - the new size of the payload is still < |kMaxPacketOctets|
@@ -87,8 +75,8 @@ class Packet {
  // Constructs an empty packet of type |type| and header |header|
  Packet(serial_data_type_t type, std::vector<uint8_t> header);

  bool IncrementPayloadCounter(const size_t index);
  bool IncrementPayloadCounter(const size_t index, const uint8_t max_val);
  bool IncrementPayloadCounter(size_t index);
  bool IncrementPayloadCounter(size_t index, uint8_t max_val);

 private:
  const size_t kMaxPacketOctets = 256;  // Includes the Octet count
+3 −3
Original line number Diff line number Diff line
@@ -79,13 +79,13 @@ void DualModeController::AddControllerEvent(std::chrono::milliseconds delay,
}

void DualModeController::SendCommandCompleteSuccess(
    const uint16_t command_opcode) const {
    uint16_t command_opcode) const {
  send_event_(EventPacket::CreateCommandCompleteOnlyStatusEvent(
      command_opcode, kSuccessStatus));
}

void DualModeController::SendCommandCompleteOnlyStatus(
    const uint16_t command_opcode, const uint8_t status) const {
void DualModeController::SendCommandCompleteOnlyStatus(uint16_t command_opcode,
                                                       uint8_t status) const {
  send_event_(EventPacket::CreateCommandCompleteOnlyStatusEvent(command_opcode,
                                                                status));
}
+39 −40
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ uint8_t EventPacket::GetEventCode() const {

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.7.1
std::unique_ptr<EventPacket> EventPacket::CreateInquiryCompleteEvent(
    const uint8_t status) {
    uint8_t status) {
  std::unique_ptr<EventPacket> evt_ptr =
      std::unique_ptr<EventPacket>(new EventPacket(HCI_INQUIRY_COMP_EVT));
  CHECK(evt_ptr->AddPayloadOctets1(status));
@@ -44,8 +44,7 @@ std::unique_ptr<EventPacket> EventPacket::CreateInquiryCompleteEvent(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.7.14
std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteEvent(
    const uint16_t command_opcode,
    const vector<uint8_t>& event_return_parameters) {
    uint16_t command_opcode, const vector<uint8_t>& event_return_parameters) {
  std::unique_ptr<EventPacket> evt_ptr =
      std::unique_ptr<EventPacket>(new EventPacket(HCI_COMMAND_COMPLETE_EVT));

@@ -58,7 +57,7 @@ std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteEvent(
}

std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteOnlyStatusEvent(
    const uint16_t command_opcode, const uint8_t status) {
    uint16_t command_opcode, uint8_t status) {
  std::unique_ptr<EventPacket> evt_ptr =
      std::unique_ptr<EventPacket>(new EventPacket(HCI_COMMAND_COMPLETE_EVT));

@@ -84,7 +83,7 @@ std::unique_ptr<EventPacket> EventPacket::CreateCommandStatusEvent(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.3.12
std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteReadLocalName(
    const uint8_t status, const std::string& local_name) {
    uint8_t status, const std::string& local_name) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(HCI_READ_LOCAL_NAME,
                                                        status);
@@ -101,12 +100,12 @@ std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteReadLocalName(
// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.1
std::unique_ptr<EventPacket>
EventPacket::CreateCommandCompleteReadLocalVersionInformation(
    const uint8_t status,
    const uint8_t hci_version,
    const uint16_t hci_revision,
    const uint8_t lmp_pal_version,
    const uint16_t manufacturer_name,
    const uint16_t lmp_pal_subversion) {
    uint8_t status,
    uint8_t hci_version,
    uint16_t hci_revision,
    uint8_t lmp_pal_version,
    uint16_t manufacturer_name,
    uint16_t lmp_pal_subversion) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(
          HCI_READ_LOCAL_VERSION_INFO, status);
@@ -123,7 +122,7 @@ EventPacket::CreateCommandCompleteReadLocalVersionInformation(
// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.2
std::unique_ptr<EventPacket>
EventPacket::CreateCommandCompleteReadLocalSupportedCommands(
    const uint8_t status, const vector<uint8_t>& supported_commands) {
    uint8_t status, const vector<uint8_t>& supported_commands) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(
          HCI_READ_LOCAL_SUPPORTED_CMDS, status);
@@ -136,10 +135,10 @@ EventPacket::CreateCommandCompleteReadLocalSupportedCommands(
// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.4
std::unique_ptr<EventPacket>
EventPacket::CreateCommandCompleteReadLocalExtendedFeatures(
    const uint8_t status,
    const uint8_t page_number,
    const uint8_t maximum_page_number,
    const uint64_t extended_lmp_features) {
    uint8_t status,
    uint8_t page_number,
    uint8_t maximum_page_number,
    uint64_t extended_lmp_features) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(
          HCI_READ_LOCAL_EXT_FEATURES, status);
@@ -153,11 +152,11 @@ EventPacket::CreateCommandCompleteReadLocalExtendedFeatures(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.5
std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteReadBufferSize(
    const uint8_t status,
    const uint16_t hc_acl_data_packet_length,
    const uint8_t hc_synchronous_data_packet_length,
    const uint16_t hc_total_num_acl_data_packets,
    const uint16_t hc_total_synchronous_data_packets) {
    uint8_t status,
    uint16_t hc_acl_data_packet_length,
    uint8_t hc_synchronous_data_packet_length,
    uint16_t hc_total_num_acl_data_packets,
    uint16_t hc_total_synchronous_data_packets) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(HCI_READ_BUFFER_SIZE,
                                                        status);
@@ -172,7 +171,7 @@ std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteReadBufferSize(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.6
std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteReadBdAddr(
    const uint8_t status, const BtAddress& address) {
    uint8_t status, const BtAddress& address) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(HCI_READ_BD_ADDR,
                                                        status);
@@ -185,7 +184,7 @@ std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteReadBdAddr(
// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.4.8
std::unique_ptr<EventPacket>
EventPacket::CreateCommandCompleteReadLocalSupportedCodecs(
    const uint8_t status,
    uint8_t status,
    const vector<uint8_t>& supported_codecs,
    const vector<uint32_t>& vendor_specific_codecs) {
  std::unique_ptr<EventPacket> evt_ptr =
@@ -202,8 +201,8 @@ EventPacket::CreateCommandCompleteReadLocalSupportedCodecs(
std::unique_ptr<EventPacket> EventPacket::CreateInquiryResultEvent(
    const BtAddress& address,
    const PageScanRepetitionMode page_scan_repetition_mode,
    const uint32_t class_of_device,
    const uint16_t clock_offset) {
    uint32_t class_of_device,
    uint16_t clock_offset) {
  std::unique_ptr<EventPacket> evt_ptr =
      std::unique_ptr<EventPacket>(new EventPacket(HCI_INQUIRY_RESULT_EVT));

@@ -222,8 +221,8 @@ std::unique_ptr<EventPacket> EventPacket::CreateInquiryResultEvent(
void EventPacket::AddInquiryResult(
    const BtAddress& address,
    const PageScanRepetitionMode page_scan_repetition_mode,
    const uint32_t class_of_device,
    const uint16_t clock_offset) {
    uint32_t class_of_device,
    uint16_t clock_offset) {
  CHECK(GetEventCode() == HCI_INQUIRY_RESULT_EVT);

  CHECK(IncrementPayloadCounter(1));  // Increment the number of responses
@@ -239,9 +238,9 @@ void EventPacket::AddInquiryResult(
std::unique_ptr<EventPacket> EventPacket::CreateExtendedInquiryResultEvent(
    const BtAddress& address,
    const PageScanRepetitionMode page_scan_repetition_mode,
    const uint32_t class_of_device,
    const uint16_t clock_offset,
    const uint8_t rssi,
    uint32_t class_of_device,
    uint16_t clock_offset,
    uint8_t rssi,
    const vector<uint8_t>& extended_inquiry_response) {
  std::unique_ptr<EventPacket> evt_ptr = std::unique_ptr<EventPacket>(
      new EventPacket(HCI_EXTENDED_INQUIRY_RESULT_EVT));
@@ -264,9 +263,9 @@ std::unique_ptr<EventPacket> EventPacket::CreateExtendedInquiryResultEvent(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.2
std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteLeReadBufferSize(
    const uint8_t status,
    const uint16_t hc_le_data_packet_length,
    const uint8_t hc_total_num_le_data_packets) {
    uint8_t status,
    uint16_t hc_le_data_packet_length,
    uint8_t hc_total_num_le_data_packets) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(
          HCI_BLE_READ_BUFFER_SIZE, status);
@@ -280,7 +279,7 @@ std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteLeReadBufferSize(
// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.3
std::unique_ptr<EventPacket>
EventPacket::CreateCommandCompleteLeReadLocalSupportedFeatures(
    const uint8_t status, const uint64_t le_features) {
    uint8_t status, uint64_t le_features) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(
          HCI_BLE_READ_LOCAL_SPT_FEAT, status);
@@ -293,8 +292,8 @@ EventPacket::CreateCommandCompleteLeReadLocalSupportedFeatures(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.14
std::unique_ptr<EventPacket>
EventPacket::CreateCommandCompleteLeReadWhiteListSize(
    const uint8_t status, const uint8_t white_list_size) {
EventPacket::CreateCommandCompleteLeReadWhiteListSize(uint8_t status,
                                                      uint8_t white_list_size) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(
          HCI_BLE_READ_WHITE_LIST_SIZE, status);
@@ -306,7 +305,7 @@ EventPacket::CreateCommandCompleteLeReadWhiteListSize(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.23
std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteLeRand(
    const uint8_t status, const uint64_t random_val) {
    uint8_t status, uint64_t random_val) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(HCI_BLE_RAND, status);

@@ -317,8 +316,8 @@ std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteLeRand(

// Bluetooth Core Specification Version 4.2, Volume 2, Part E, Section 7.8.27
std::unique_ptr<EventPacket>
EventPacket::CreateCommandCompleteLeReadSupportedStates(
    const uint8_t status, const uint64_t le_states) {
EventPacket::CreateCommandCompleteLeReadSupportedStates(uint8_t status,
                                                        uint64_t le_states) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(
          HCI_BLE_READ_SUPPORTED_STATES, status);
@@ -331,7 +330,7 @@ EventPacket::CreateCommandCompleteLeReadSupportedStates(
// Vendor-specific commands (see hcidefs.h)

std::unique_ptr<EventPacket> EventPacket::CreateCommandCompleteLeVendorCap(
    const uint8_t status, const vector<uint8_t>& vendor_cap) {
    uint8_t status, const vector<uint8_t>& vendor_cap) {
  std::unique_ptr<EventPacket> evt_ptr =
      EventPacket::CreateCommandCompleteOnlyStatusEvent(HCI_BLE_VENDOR_CAP_OCF,
                                                        status);
Loading