iso-tester: Make QoS parameters reflect the tests names
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 23 May 2023 17:47:09 +0000 (10:47 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
AC 1 + 2 tests shall use their respective QoS parameters.

tools/iso-tester.c

index c59d12e..63c37bd 100644 (file)
 #define QOS_IN_1(_interval, _latency, _sdu, _phy, _rtn) \
        QOS_FULL(0x01, BT_ISO_QOS_CIS_UNSET, \
                QOS_IO(_interval, _latency, _sdu, _phy, _rtn), {})
+#define QOS_IN_2(_interval, _latency, _sdu, _phy, _rtn) \
+       QOS_FULL(0x02, BT_ISO_QOS_CIS_UNSET, \
+               QOS_IO(_interval, _latency, _sdu, _phy, _rtn), {})
 #define QOS_IN_1_1(_interval, _latency, _sdu, _phy, _rtn) \
        QOS_FULL(0x01, 0x01, \
                QOS_IO(_interval, _latency, _sdu, _phy, _rtn), {})
 
 /* One unidirectional CIS. Unicast Server is Audio Sink */
 #define AC_1_4 QOS_OUT(10000, 10, 40, 0x02, 2)
+/* One unidirectional CIS. Unicast Server is Audio Sink CIG 0x01 */
+#define AC_1_4_1 QOS_OUT_1(10000, 10, 40, 0x02, 2)
 /* One unidirectional CIS. Unicast Server is Audio Source. */
 #define AC_2_10 QOS_IN(10000, 10, 40, 0x02, 2)
+/* One unidirectional CIS. Unicast Server is Audio Source CIG 0x02 */
+#define AC_2_10_2 QOS_IN_2(10000, 10, 40, 0x02, 2)
 /* One bidirectional CIS. Unicast Server is Audio Sink and Audio Source. */
 #define AC_3_5 QOS(10000, 10, 40, 0x02, 2)
 /* Two unidirectional CISes. Unicast Server is Audio Sink.
@@ -552,20 +559,6 @@ static const struct iso_client_data connect_1_16_2_1 = {
        .expect_err = 0
 };
 
-static const struct iso_client_data connect_ac_1_2_cig_1_2 = {
-       .qos = QOS_1_16_2_1,
-       .qos_2 = QOS_2_16_2_1,
-       .expect_err = 0,
-       .mcis = true,
-};
-
-static const struct iso_client_data connect_ac_1_2 = {
-       .qos = QOS_16_2_1,
-       .qos_2 = QOS_16_2_1,
-       .expect_err = 0,
-       .mcis = true,
-};
-
 static const struct iso_client_data connect_1_1_16_2_1 = {
        .qos = QOS_1_1_16_2_1,
        .expect_err = 0
@@ -918,6 +911,20 @@ static const struct iso_client_data connect_ac_11ii = {
        .defer = true,
 };
 
+static const struct iso_client_data connect_ac_1_2 = {
+       .qos = AC_1_4,
+       .qos_2 = AC_2_10,
+       .expect_err = 0,
+       .mcis = true,
+};
+
+static const struct iso_client_data connect_ac_1_2_cig_1_2 = {
+       .qos = AC_1_4_1,
+       .qos_2 = AC_2_10_2,
+       .expect_err = 0,
+       .mcis = true,
+};
+
 static const struct iso_client_data bcast_16_2_1_send = {
        .qos = QOS_OUT_16_2_1,
        .expect_err = 0,