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

Commit f9548ec0 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix choosing configuration based on ase cnt

We could end up with incorrect configuration because ase cnt was not
verified.

Bug: 238588139
Test: atest BluetoothInstrumentationTests
Test: PTS  BAP/UCL/STR/BV-040-C
Tag: #feature
Merged-In: Ibe448ae24adaffcaee490615977c7d46488dbb09
Change-Id: Ibe448ae24adaffcaee490615977c7d46488dbb09
(cherry picked from commit c41820ea)
parent 6986f60e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -847,6 +847,11 @@ bool LeAudioDeviceGroup::IsConfigurationSupported(
        if (needed_ase == 0) break;
      }

      if (needed_ase > 0) {
        LOG_DEBUG("Device has too less ASEs. Still needed ases %d", needed_ase);
        return false;
      }

      required_device_cnt--;
    }