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

Commit 00bfbc80 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix initialization of the cis cfg

In case of one directional CIS trash could be sent to the controller

Bug: 222674521
Bug: 150670922
Test: atest --bluetooth_le_audio_test bluetoot_le_audio_client_test
Sponsor:@jpawlowski

Change-Id: I9dab5b1172be73087acee0b1ec674a5ac4cda769
parent ca098e78
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -860,7 +860,8 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
        if (iter != cis_cfgs.end()) continue;

        auto ases_pair = leAudioDevice->GetAsesByCisId(cis);
        EXT_CIS_CFG cis_cfg;
        EXT_CIS_CFG cis_cfg = {0, 0, 0, 0, 0, 0, 0};

        cis_cfg.cis_id = ase->cis_id;
        cis_cfg.phy_mtos =
            group->GetPhyBitmask(le_audio::types::kLeAudioDirectionSink);