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

Commit 414ff030 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Use bta::dm::api::get_btm_interface

Bug: 193716447
Test: m .

Change-Id: Ib3f2becfdbb9946c845c6b85495cabc459728655
parent 603dbff9
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -26,14 +26,11 @@

#include <vector>

#include "bt_target.h"  // Must be first to define build configuration
#include "bta/dm/bta_dm_disc.h"
#include "bta/dm/bta_dm_int.h"
#include "bta/dm/bta_dm_sec_int.h"
#include "osi/include/allocator.h"
#include "osi/include/compat.h"
#include "stack/btm/btm_sec.h"
#include "stack/include/bt_octets.h"
#include "stack/include/bt_uuid16.h"
#include "stack/include/btm_api.h"
#include "stack/include/btm_client_interface.h"
@@ -566,8 +563,9 @@ void BTA_DmBleSubrateRequest(const RawAddress& bd_addr, uint16_t subrate_min,
}

bool BTA_DmCheckLeAudioCapable(const RawAddress& address) {
  for (tBTM_INQ_INFO* inq_ent = BTM_InqDbFirst(); inq_ent != nullptr;
       inq_ent = BTM_InqDbNext(inq_ent)) {
  for (tBTM_INQ_INFO* inq_ent = get_btm_client_interface().db.BTM_InqDbFirst();
       inq_ent != nullptr;
       inq_ent = get_btm_client_interface().db.BTM_InqDbNext(inq_ent)) {
    if (inq_ent->results.remote_bd_addr != address) continue;

    LOG_INFO("Device is LE Audio capable based on AD content");