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

Commit 108de02b authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Properly route acl disconnect am: 6a4a67bb

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

Change-Id: I7476cd63c6dcc9597aa46cbf072f1a3f164872c1
parents 4e0cf9d3 6a4a67bb
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1016,14 +1016,8 @@ static void btu_hcif_disconnection_comp_evt(uint8_t* p) {

  handle = HCID_GET_HANDLE(handle);

  /* If L2CAP or SCO doesn't know about it, send it to ISO */
  if (!l2c_link_hci_disc_comp(handle, reason) &&
      !btm_sco_removed(handle, reason)) {
    IsoManager::GetInstance()->HandleDisconnect(handle, reason);
  }

  /* Notify security manager */
  btm_sec_disconnected(handle, static_cast<tHCI_STATUS>(reason));
  btm_acl_disconnected(static_cast<tHCI_STATUS>(status), handle,
                       static_cast<tHCI_STATUS>(reason));
}

/*******************************************************************************