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

Commit 2973959c authored by Chris Manton's avatar Chris Manton
Browse files

Add api stack/acl/btm_acl::acl_is_transport_le_from_handle

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: If424c133c625a456ae2c0afc9f39abdec7dad54e
parent 788d4a52
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2736,3 +2736,11 @@ uint8_t acl_link_role(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
  }
  return p_acl->link_role;
}

bool acl_is_transport_le_from_handle(uint16_t handle) {
  tACL_CONN* p_acl = acl_get_connection_from_handle(handle);
  if (p_acl == nullptr) {
    return false;
  }
  return p_acl->transport == BT_TRANSPORT_LE;
}
+2 −0
Original line number Diff line number Diff line
@@ -289,3 +289,5 @@ void btm_ble_refresh_local_resolvable_private_addr(
void btm_cont_rswitch_from_handle(uint16_t hci_handle);

uint8_t acl_link_role(const RawAddress& remote_bda, tBT_TRANSPORT transport);

bool acl_is_transport_le_from_handle(uint16_t handle);