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

Commit 318b1fa6 authored by Chris Manton's avatar Chris Manton
Browse files

Properly retrieve acl_conn stack/acl/btm_acl::BTM_IsBleConnection

Towards encapsulation

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

Change-Id: I3f5bba04de53378dad998c5471f9ca20cd6be2d6
parent e7e54568
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -2450,11 +2450,9 @@ bool BTM_IsBleConnection(uint16_t hci_handle) {
    ASSERT_LOG(false, "This should not be invoked from code path");
  }

  uint8_t index = btm_handle_to_acl_index(hci_handle);
  if (index >= MAX_L2CAP_LINKS) return false;

  tACL_CONN* p = &btm_cb.acl_cb_.acl_db[index];
  return (p->transport == BT_TRANSPORT_LE);
  const tACL_CONN* p_acl = internal_.acl_get_connection_from_handle(hci_handle);
  if (p_acl == nullptr) return false;
  return p_acl->is_transport_ble();
}

const RawAddress acl_address_from_handle(uint16_t hci_handle) {