Skip to content

Commit 7d410c5

Browse files
Thalleycarlescufi
authored andcommitted
Bluetooth: Audio: Fix issue with creating unidirectional CIS
As the unicast client, we would always create bidirectional CIS to ensure that the PHY parameter is correctly set. We can, however, just set the (required) PHY value and leave the SDU and RTN values as 0, to avoid creating bidirectional CIS. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 1e5be3f commit 7d410c5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

subsys/bluetooth/audio/stream.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -851,15 +851,11 @@ static void unicast_client_codec_qos_to_iso_qos(struct bt_audio_iso *iso,
851851

852852
bt_audio_codec_qos_to_iso_qos(io_qos, qos);
853853

854-
/* If the opposing ASE of the CIS is not yet configured, we
855-
* assume that it will use the same QoS value.
856-
*
857-
* This allows us to actually create the CIG and only start the
858-
* CIS in one direction, and then later connect the CIS (assuming that
859-
* the QoS values are equal)
860-
*/
861854
if (other_io_qos != NULL) {
862-
bt_audio_codec_qos_to_iso_qos(other_io_qos, qos);
855+
/* If the opposing ASE of the CIS is not yet configured, we
856+
* still need to set the PHY value when creating the CIG.
857+
*/
858+
other_io_qos->phy = io_qos->phy;
863859
}
864860
}
865861

0 commit comments

Comments
 (0)