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

Commit 5cb180e7 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix misleading "LE Audio capable" log line

This log line is now present even if device doesn't have LE Audio
capabilities:
BTA_DmCheckLeAudioCapable: Device is LE Audio capable based on AD content

Bug: 31246941
Test: bond to non-le audio capable device, observe logs.
Change-Id: I2e8f9451a203d8e82ce4db9dad28a2d34b22ca4f
parent cc87b9a9
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -544,8 +544,12 @@ bool BTA_DmCheckLeAudioCapable(const RawAddress& address) {
       inq_ent = get_btm_client_interface().db.BTM_InqDbNext(inq_ent)) {
    if (inq_ent->results.remote_bd_addr != address) continue;

    if (inq_ent->results.ble_ad_is_le_audio_capable) {
      LOG_INFO("Device is LE Audio capable based on AD content");
    return inq_ent->results.ble_ad_is_le_audio_capable;
      return true;
    }

    return false;
  }
  return false;
}