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

Commit 13670a46 authored by Chris Manton's avatar Chris Manton
Browse files

Add stack/include/acl_api for LE parameter request

acl_peer_supports_ble_connection_parameters_request

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I169239c0a6dba6bd6028525a9ee3e72e401009f6
parent d22f83f3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2446,3 +2446,12 @@ bool acl_refresh_remote_address(const tBTM_SEC_DEV_REC* p_sec_rec,
                  p_acl->active_remote_addr_type);
  return true;
}

bool acl_peer_supports_ble_connection_parameters_request(
    const RawAddress& remote_bda) {
  tACL_CONN* p_acl = btm_bda_to_acl(remote_bda, BT_TRANSPORT_LE);
  if (p_acl == nullptr) {
    return false;
  }
  return HCI_LE_CONN_PARAM_REQ_SUPPORTED(p_acl->peer_le_features);
}
+3 −0
Original line number Diff line number Diff line
@@ -253,3 +253,6 @@ bool acl_refresh_remote_address(const tBTM_SEC_DEV_REC* p_dev_rec,

void btm_establish_continue_from_address(const RawAddress& remote_bda,
                                         tBT_TRANSPORT transport);

bool acl_peer_supports_ble_connection_parameters_request(
    const RawAddress& remote_bda);