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

Commit 80604c67 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

legacy: Check resolving list max size before using it am: 04fd0b45

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1894912

Change-Id: I9a4c278875c71ebc198e143da7fa78049ad0ad90
parents 57a80713 04fd0b45
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -657,6 +657,11 @@ static bool is_peer_identity_key_valid(const tBTM_SEC_DEV_REC& dev_rec) {
static Octet16 get_local_irk() { return btm_cb.devcb.id_keys.irk; }

void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& dev_rec) {
  if (controller_get_interface()->get_ble_resolving_list_max_size() == 0) {
    LOG_INFO("Controller does not support RPA offloading or privacy 1.2");
    return;
  }

  if (!controller_get_interface()->supports_ble_privacy()) {
    return btm_ble_ble_unsupported_resolving_list_load_dev(&dev_rec);
  }