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

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

Add API stack/acl/btm_acl::acl_peer_supports_ble_packet_extension

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I570b93fa2f688ff8f1718f04cc7722af5ce7dbdd
parent 593ea0b8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2761,3 +2761,11 @@ uint16_t acl_get_hci_handle_for_hcif(const RawAddress& bd_addr,
  }
  return p_acl->hci_handle;
}

bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle) {
  tACL_CONN* p_acl = acl_get_connection_from_handle(hci_handle);
  if (p_acl == nullptr) {
    return false;
  }
  return HCI_LE_DATA_LEN_EXT_SUPPORTED(p_acl->peer_lmp_feature_pages[0]);
}
+3 −0
Original line number Diff line number Diff line
@@ -251,9 +251,12 @@ bool acl_peer_supports_ble_connection_parameters_request(

bool sco_peer_supports_esco_2m_phy(uint16_t hci_handle);
bool sco_peer_supports_esco_3m_phy(uint16_t hci_handle);

bool acl_is_switch_role_idle(const RawAddress& bd_addr,
                             tBT_TRANSPORT transport);

bool acl_peer_supports_ble_packet_extension(uint16_t hci_handle);

/*******************************************************************************
 *
 * Function         BTM_ReadConnectionAddr