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

Commit ccff83be authored by Chris Manton's avatar Chris Manton
Browse files

gd_acl: Add bluetooth::shim::ACL_Disconnect

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

Change-Id: I8e518f2bd768889874814950cd08be6e193aa0a1
parent aa5b19c8
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -166,8 +166,14 @@ static void hci_btsnd_hcic_disconnect(tACL_CONN& p_acl, tHCI_STATUS reason) {
           PRIVATE_ADDRESS(p_acl.remote_addr),
           hci_error_code_text(reason).c_str());
  p_acl.disconnect_reason = reason;

  if (bluetooth::shim::is_gd_acl_enabled()) {
    return bluetooth::shim::ACL_Disconnect(p_acl.hci_handle,
                                           p_acl.is_transport_br_edr(), reason);
  } else {
    btsnd_hcic_disconnect(p_acl.hci_handle, reason);
  }
}

/* 3 seconds timeout waiting for responses */
#define BTM_DEV_REPLY_TIMEOUT_MS (3 * 1000)