2023-09-29 18:35:54

by Iulia Tanasescu

[permalink] [raw]
Subject: [PATCH BlueZ 0/1] iso-tester: Add test for bcast AC 13 BIS unset

This adds a new test for the ISO Broadcast AC 13, when the BIG handle
is set but the advertising handle is unset.

This test depends on the kernel support implemented in
Bluetooth: ISO: Match QoS adv handle with BIG handle

Iulia Tanasescu (1):
iso-tester: Add test for bcast AC 13 BIS unset

tools/iso-tester.c | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)


base-commit: 5ab5352531a9cc7058cce569607f3a6831464443
--
2.39.2


2023-10-05 17:05:56

by Iulia Tanasescu

[permalink] [raw]
Subject: [PATCH BlueZ 1/1] iso-tester: Add test for bcast AC 13 BIS unset

This adds a new test for the ISO Broadcast AC 13, when the BIG handle
is set but the advertising handle is unset:

ISO Broadcaster AC 13 BIG 0x01 - Success

---
tools/iso-tester.c | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)

diff --git a/tools/iso-tester.c b/tools/iso-tester.c
index 410da2c93..10b42dec2 100644
--- a/tools/iso-tester.c
+++ b/tools/iso-tester.c
@@ -330,7 +330,8 @@ static const uint8_t base_lc3_ac_12[] = {
};

/* Multiple Audio Channels. Two BISes. */
-#define BCAST_AC_13 BCAST_QOS_OUT_1_1(10000, 10, 40, 0x02, 2)
+#define BCAST_AC_13_1_1 BCAST_QOS_OUT_1_1(10000, 10, 40, 0x02, 2)
+#define BCAST_AC_13_1 BCAST_QOS_OUT_1(10000, 10, 40, 0x02, 2)

static const uint8_t base_lc3_ac_13[] = {
0x28, 0x00, 0x00, /* Presentation Delay */
@@ -1151,8 +1152,17 @@ static const struct iso_client_data bcast_ac_12 = {
.base_len = sizeof(base_lc3_ac_12),
};

-static const struct iso_client_data bcast_ac_13 = {
- .qos = BCAST_AC_13,
+static const struct iso_client_data bcast_ac_13_1_1 = {
+ .qos = BCAST_AC_13_1_1,
+ .expect_err = 0,
+ .bcast = true,
+ .mconn = true,
+ .base = base_lc3_ac_13,
+ .base_len = sizeof(base_lc3_ac_13),
+};
+
+static const struct iso_client_data bcast_ac_13_1 = {
+ .qos = BCAST_AC_13_1,
.expect_err = 0,
.bcast = true,
.mconn = true,
@@ -3035,8 +3045,13 @@ int main(int argc, char *argv[])
test_iso("ISO Broadcaster AC 12 - Success", &bcast_ac_12, setup_powered,
test_bcast);

- test_iso("ISO Broadcaster AC 13 - Success", &bcast_ac_13, setup_powered,
- test_bcast2);
+ test_iso("ISO Broadcaster AC 13 BIG 0x01 BIS 0x01 - Success",
+ &bcast_ac_13_1_1,
+ setup_powered,
+ test_bcast2);
+
+ test_iso("ISO Broadcaster AC 13 BIG 0x01 - Success", &bcast_ac_13_1,
+ setup_powered, test_bcast2);

test_iso("ISO Broadcaster AC 14 - Success", &bcast_ac_14, setup_powered,
test_bcast);
--
2.39.2