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

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

Add API stack/acl/btm_acl::acl_set_peer_le_features_from_handle

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ib7a52aab4141189e6bdc163d8ead67f83e0dc1b6
parent e63b16ba
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2810,3 +2810,13 @@ bool acl_is_role_switch_allowed() {
uint16_t acl_get_supported_packet_types() {
  return btm_cb.acl_cb_.btm_acl_pkt_types_supported;
}

bool acl_set_peer_le_features_from_handle(uint16_t hci_handle,
                                          const uint8_t* p) {
  tACL_CONN* p_acl = acl_get_connection_from_handle(hci_handle);
  if (p_acl == nullptr) {
    return false;
  }
  STREAM_TO_ARRAY(p_acl->peer_le_features, p, BD_FEATURES_LEN);
  return true;
}
+3 −0
Original line number Diff line number Diff line
@@ -311,3 +311,6 @@ void acl_set_disconnect_reason(uint8_t acl_disc_reason);
bool acl_is_role_switch_allowed();

uint16_t acl_get_supported_packet_types();

bool acl_set_peer_le_features_from_handle(uint16_t hci_handle,
                                          const uint8_t* p);