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

Commit 8ec9ef80 authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

Rootcanal: Fix check in RejectSlaveConnection am: 4f81b20c

am: f166df78

Change-Id: Icfd00ce77bb59ef2bb44496a3f8f4811d3aa15c0
parents 9498bddc f166df78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -951,7 +951,7 @@ hci::Status LinkLayerController::RejectConnectionRequest(const Address& addr, ui
}

void LinkLayerController::RejectSlaveConnection(const Address& addr, uint8_t reason) {
  CHECK(reason > 0x0f || reason < 0x0d);
  CHECK(reason >= 0x0d && reason <= 0x0f);
  send_event_(EventPacketBuilder::CreateConnectionCompleteEvent(static_cast<hci::Status>(reason), 0xeff, addr,
                                                                hci::LinkType::ACL, false)
                  ->ToVector());