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

Commit 10cf5c72 authored by Chris Manton's avatar Chris Manton
Browse files

Use 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: Ia1c8eb7a6658f0f9bfc60a8b2845324ca9f17298
parent c865f3ed
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -2264,15 +2264,12 @@ void btm_ble_read_remote_features_complete(uint8_t* p) {
    if (status != HCI_ERR_UNSUPPORTED_REM_FEATURE) return;
  }

  int idx = btm_handle_to_acl_index(handle);
  if (idx == MAX_L2CAP_LINKS) {
    BTM_TRACE_ERROR("%s: can't find acl for handle: 0x%04d", __func__, handle);
  if (status == HCI_SUCCESS) {
    if (!acl_set_peer_le_features_from_handle(handle, p)) {
      BTM_TRACE_ERROR("%s: can't find acl for handle: 0x%04d", __func__,
                      handle);
      return;
    }

  if (status == HCI_SUCCESS) {
    STREAM_TO_ARRAY(btm_cb.acl_cb_.acl_db[idx].peer_le_features, p,
                    BD_FEATURES_LEN);
  }

  btsnd_hcic_rmt_ver_req(handle);