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

Commit 5b995782 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "Floss: Fix btm_find_dev_with_lenc to use correct callback"

parents e4de4806 d591ecdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ tBTM_SEC_DEV_REC* btm_find_dev(const RawAddress& bd_addr) {

static bool has_lenc_and_address_is_equal(void* data, void* context) {
  tBTM_SEC_DEV_REC* p_dev_rec = static_cast<tBTM_SEC_DEV_REC*>(data);
  if (!(p_dev_rec->ble.key_type & BTM_LE_KEY_LENC)) return false;
  if (!(p_dev_rec->ble.key_type & BTM_LE_KEY_LENC)) return true;

  return is_address_equal(data, context);
}