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

Commit 4f81b20c authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Rootcanal: Fix check in RejectSlaveConnection

Test: manual
Change-Id: Ic37c123f5326e2cf5675f2eeb1734eb9514d86bc
parent 2985c8f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line 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) {
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,
  send_event_(EventPacketBuilder::CreateConnectionCompleteEvent(static_cast<hci::Status>(reason), 0xeff, addr,
                                                                hci::LinkType::ACL, false)
                                                                hci::LinkType::ACL, false)
                  ->ToVector());
                  ->ToVector());