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

Commit 6a4a67bb authored by Chris Manton's avatar Chris Manton
Browse files

Properly route acl disconnect

Disconnect should come directly into the acl module.

Bug: 166280067
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I2edaec9b29df322169b64ca1c12537af713e8c4c
parent 0a627827
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));
}

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