aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools
diff options
context:
space:
mode:
authorIulia Tanasescu <iulia.tanasescu@nxp.com>2023-10-03 17:38:40 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-10-03 14:15:12 -0700
commit232f6f68531bbe8be44c45a1094b26ee20a56c19 (patch)
treed00555dcef3aa37410abab04224d203573fee4cb /tools
parent6683305d827a2f5626a2ae11cf0c8dae2e832899 (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/iso-tester.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/tools/iso-tester.c b/tools/iso-tester.c
index a392a06ebc..b0671b2606 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);