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

Commit 928c95d8 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq am: 662ecdc0 am: 35342707...

Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq am: 662ecdc0 am: 35342707 am: efd35f1e am: d5671957

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1497501

Change-Id: I0e712064d6a3c03d9d3c001cd14e4eb91790152d
parents 919d94a6 d5671957
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -877,15 +877,15 @@ bool L2CA_DisconnectReq(uint16_t cid) {

  tL2C_CCB* p_ccb;

  L2CAP_TRACE_API("L2CA_DisconnectReq()  CID: 0x%04x", cid);

  /* Find the channel control block. We don't know the link it is on. */
  p_ccb = l2cu_find_ccb_by_cid(NULL, cid);
  if (p_ccb == NULL) {
    L2CAP_TRACE_WARNING("L2CAP - no CCB for L2CA_disc_req, CID: %d", cid);
    LOG_WARN("L2CAP - no CCB for L2CA_disc_req, CID: %d", cid);
    return (false);
  }

  LOG_DEBUG("L2CAP Local disconnect request CID: 0x%04x", cid);

  l2c_csm_execute(p_ccb, L2CEVT_L2CA_DISCONNECT_REQ, NULL);

  return (true);