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

Commit ead2f163 authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Send ConnectionComplete after Cancel

Bug: 181371297
Test: cert/run LeAclManagerTest
Tag: #gd-refactor
Change-Id: I868d5eb48ec7eca7f0ecf10ad3014f8c57634d85
parent 4ff618e6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1792,6 +1792,14 @@ void DualModeController::LeConnectionCancel(CommandView command) {
  ErrorCode status = link_layer_controller_.SetLeConnect(false);
  send_event_(bluetooth::hci::LeCreateConnectionCancelCompleteBuilder::Create(
      kNumCommandPackets, status));

  send_event_(bluetooth::hci::LeConnectionCompleteBuilder::Create(
      ErrorCode::UNKNOWN_CONNECTION, kReservedHandle,
      bluetooth::hci::Role::CENTRAL,
      bluetooth::hci::AddressType::PUBLIC_DEVICE_ADDRESS,
      bluetooth::hci::Address(), 1 /* connection_interval */,
      2 /* connection_latency */, 3 /* supervision_timeout*/,
      static_cast<bluetooth::hci::ClockAccuracy>(0x00)));
}

void DualModeController::LeReadConnectListSize(CommandView command) {