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

Commit cb2cc543 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Handle remote not supporting LL_SLAVE_FEATURE_REQ

Test: for PTS
Change-Id: I3030a068c1c4980fa7cbb23b478afbe441584869
parent 7968d0e1
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -2561,8 +2561,9 @@ void btm_ble_read_remote_features_complete(uint8_t* p) {
  handle = handle & 0x0FFF;  // only 12 bits meaningful
  handle = handle & 0x0FFF;  // only 12 bits meaningful


  if (status != HCI_SUCCESS) {
  if (status != HCI_SUCCESS) {
    BTM_TRACE_ERROR("%s: failed for handle: 0x%04d", __func__, handle);
    BTM_TRACE_ERROR("%s: failed for handle: 0x%04d, status 0x%02x", __func__,
    return;
                    handle, status);
    if (status != HCI_ERR_UNSUPPORTED_REM_FEATURE) return;
  }
  }


  int idx = btm_handle_to_acl_index(handle);
  int idx = btm_handle_to_acl_index(handle);
@@ -2571,7 +2572,9 @@ void btm_ble_read_remote_features_complete(uint8_t* p) {
    return;
    return;
  }
  }


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


  btsnd_hcic_rmt_ver_req(handle);
  btsnd_hcic_rmt_ver_req(handle);
}
}