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

Commit f1b682ba authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk
Browse files

le_audio: Correct setting SDU per direction in CIG

SDU size parameter of CIS should be matching requirements of stream. It
may be different per direction of CIS.

Bug: 220690180
Tag: #bug
Test: atest bluetooth_le_audio_client_test
Sponsor: jpawlowski@
Change-Id: I4d31acbf291ce9422cf20475c26095a464e7aee8
parent 347bd0b0
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -868,14 +868,12 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
            group->GetPhyBitmask(le_audio::types::kLeAudioDirectionSource);

        if (ases_pair.sink) {
          /* TODO: config should be previously adopted */
          cis_cfg.max_sdu_size_mtos = ase->max_sdu_size;
          cis_cfg.rtn_mtos = ase->retrans_nb;
          cis_cfg.max_sdu_size_mtos = ases_pair.sink->max_sdu_size;
          cis_cfg.rtn_mtos = ases_pair.sink->retrans_nb;
        }
        if (ases_pair.source) {
          /* TODO: config should be previously adopted */
          cis_cfg.max_sdu_size_stom = ase->max_sdu_size;
          cis_cfg.rtn_stom = ase->retrans_nb;
          cis_cfg.max_sdu_size_stom = ases_pair.source->max_sdu_size;
          cis_cfg.rtn_stom = ases_pair.source->retrans_nb;
        }

        cis_cfgs.push_back(cis_cfg);