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

Commit efd35f1e 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

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

Change-Id: I881af98b6974b210c199e508fc55a820a3def2bc
parents f79bd4c5 35342707
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);