Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3000112rwl; Thu, 13 Apr 2023 14:13:35 -0700 (PDT) X-Google-Smtp-Source: AKy350a1EcRPsrtNJrAxrwLH/3Adpk/2HsRIVQ8LZvkj8w3onT95GbtgpxnDWzbwh8vReJ68W4tR X-Received: by 2002:a05:6a20:8f29:b0:ec:96f8:4830 with SMTP id b41-20020a056a208f2900b000ec96f84830mr2424027pzk.0.1681420414883; Thu, 13 Apr 2023 14:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681420414; cv=none; d=google.com; s=arc-20160816; b=cr8m2ZkCqDE56z+a1j5sMpQUHYi8K+QauGC4ka3G0SwZr3P5720HxsBvNlzowG+/DL pAroV5FCagNVsBfLbuFG4KBxpKC680c+NXFEGjE4BBJJbJbwZjwXrm9zrGku5BD7xHbE 5sE5/j2U21d+k6fRz9IJFnKPVByjgz3645jreu8GsyXXGtEB232zIxgEyYuSeVeWIKUM vh8/+NFmOebRwhOJX37a0XgYjAPGShSDb3GB3frqTKqcaEMWexQbNnFUxSQiZE1yK3Oa gph2ziV2lJ6jfgO37Dn2q61B0hp6pdQC3mcLnpnPG3+NszDDvAbbG0bmLFQVanKd8b1Z N7JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=9AsgiR75yVcGCcDBhuDdSPZvfJYsStTELN72FyGZV9I=; b=FZGncdCccnMPLKGAlzZXashUrV7SrtuBW+v9BM/tIWRFDLZgsc/Y8MD7TSIzC5bbQ2 E8+K0eoCb7q616brxIqOAqnKeSZsb7ezCo3TsrTUIRWRshk3Aid1+p1q3IbSvJoAnOb+ nYOsHWOra8l92nhSueJcCZ8y6iJp7APdSpBaWRN4k/tUJ6VuvUVyHjG7blSmZYDWRRY2 1F5eyE5vc7uYnTClkiN7TaaX9suS4oI7rDtRdZ1D4YkB5FlJAUEHWQi7qv9/EYUVPeKF w8OZKYx0RcMc8dUeBMDF3t5vtpvOCvIwOTHEpM4fKPga9N8M0iV/ghp9AgRPwtpAYV7K RcTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ML57UrTc; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t191-20020a6381c8000000b0051b25fca82bsi3024350pgd.492.2023.04.13.14.12.06; Thu, 13 Apr 2023 14:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ML57UrTc; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjDMVE6 (ORCPT + 99 others); Thu, 13 Apr 2023 17:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjDMVE6 (ORCPT ); Thu, 13 Apr 2023 17:04:58 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5735993C9 for ; Thu, 13 Apr 2023 14:04:55 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id mq14-20020a17090b380e00b002472a2d9d6aso1938209pjb.5 for ; Thu, 13 Apr 2023 14:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681419894; x=1684011894; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=9AsgiR75yVcGCcDBhuDdSPZvfJYsStTELN72FyGZV9I=; b=ML57UrTcieGwNDLlalJ0vAYiLa6RspSdp+rLsBV0SR+BWeSo0z6byMbh7frBR6VtgK I2QqYwyMXxKNVHwqhS0HSgxivGQHjQYjvxMVSRbw8brImreeppcneT5/7VtY/yR+sNrt NV8L5uADBHDNiDu+jrgTfFoHAQ3ZTKNXyXOxzkI34cnCYsonl4hSHD6fxrPHdmd6270p UaSpeMvpO1uKPlt2vlDq9SSAvPp4nz5drHKa76wbOeGuKD8eD5ZcrM2UV+iJid70KO/B cmZSBHrr1zwLwkZxHTx9VWUqJCJkJcFcj+NqIB4UKJsMjQ4mq3nsLL2Jz4I5cu8SQDoD g1vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681419894; x=1684011894; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9AsgiR75yVcGCcDBhuDdSPZvfJYsStTELN72FyGZV9I=; b=F9IIxozblJ67nEqVviCN+MsfA/AwZSJUwm9MN5NE7xxAKoGM7OerKt6cSzFHQDUWp7 02pSnofQA8p+xS9obEZFEA7gl4eK1nmVem5OacMeQjQRFkGLm8e/Ute+DNn2NSx22fLW m9FRbts2ZHPT6zDehPWnco0GNgWRWciTHeUcAYOdD7SWON2z751qvQGUkIyRsQkl1fev EnYUx+84FHpBCCR12I3XxXNl8G/cAT1XPucfC9mn6CKNBHT2sjxbpdCQTL9x+kiDDKol PKYgmgxs5J8OW1ONp/bt0AjRviwIhXRbcAFcSt2QoYvjOiMB6R6ijds30NApCvHjWQOh 1J0g== X-Gm-Message-State: AAQBX9f4S43W1I8pDDK6AC1IJP15U9vcwlq7GQtykYNpVZhfL8oGUTO9 FUyA9IC24kwkdtc3xmoCwMWebB5pulECIQ== X-Received: by 2002:a17:90a:4925:b0:23f:7ff6:eba with SMTP id c34-20020a17090a492500b0023f7ff60ebamr3383314pjh.0.1681419893765; Thu, 13 Apr 2023 14:04:53 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id ij8-20020a170902ab4800b001a514d75d16sm1898509plb.13.2023.04.13.14.04.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 14:04:52 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [BlueZ PATCH v2 2/2] iso-tester: Add BAP Audio Configuration tests Date: Thu, 13 Apr 2023 14:04:50 -0700 Message-Id: <20230413210450.961897-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413210450.961897-1-luiz.dentz@gmail.com> References: <20230413210450.961897-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds the following tests based on BAP Audio Configurations: ISO AC 1 & 4 - Success ISO AC 2 & 10 - Success ISO AC 3 & 5 - Success ISO AC 6(i) - Success ISO AC 6(ii) - Success ISO AC 7(i) - Success ISO AC 7(ii) - Success ISO AC 8(i) - Success ISO AC 8(ii) - Success ISO AC 9(i) - Success ISO AC 9(ii) - Success ISO AC 11(i) - Success ISO AC 11(ii) - Success --- tools/iso-tester.c | 270 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 262 insertions(+), 8 deletions(-) diff --git a/tools/iso-tester.c b/tools/iso-tester.c index 0f10f8940f0f..aad4b6574026 100644 --- a/tools/iso-tester.c +++ b/tools/iso-tester.c @@ -69,6 +69,11 @@ QOS_IO(_interval, _latency, _sdu, _phy, _rtn), \ QOS_IO(_interval, _latency, _sdu, _phy, _rtn)) +#define QOS_1_2(_interval, _latency, _sdu, _phy, _rtn) \ + QOS_FULL(0x01, 0x02, \ + QOS_IO(_interval, _latency, _sdu, _phy, _rtn), \ + QOS_IO(_interval, _latency, _sdu, _phy, _rtn)) + #define QOS_OUT(_interval, _latency, _sdu, _phy, _rtn) \ QOS_FULL(BT_ISO_QOS_CIG_UNSET, BT_ISO_QOS_CIS_UNSET, \ {}, QOS_IO(_interval, _latency, _sdu, _phy, _rtn)) @@ -81,9 +86,22 @@ QOS_FULL(0x01, 0x01, \ {}, QOS_IO(_interval, _latency, _sdu, _phy, _rtn)) +#define QOS_OUT_1_2(_interval, _latency, _sdu, _phy, _rtn) \ + QOS_FULL(0x01, 0x02, \ + {}, QOS_IO(_interval, _latency, _sdu, _phy, _rtn)) + #define QOS_IN(_interval, _latency, _sdu, _phy, _rtn) \ QOS_FULL(BT_ISO_QOS_CIG_UNSET, BT_ISO_QOS_CIS_UNSET, \ QOS_IO(_interval, _latency, _sdu, _phy, _rtn), {}) +#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_1_1(_interval, _latency, _sdu, _phy, _rtn) \ + QOS_FULL(0x01, 0x01, \ + QOS_IO(_interval, _latency, _sdu, _phy, _rtn), {}) +#define QOS_IN_1_2(_interval, _latency, _sdu, _phy, _rtn) \ + QOS_FULL(0x01, 0x02, \ + QOS_IO(_interval, _latency, _sdu, _phy, _rtn), {}) /* QoS Configuration settings for low latency audio data */ #define QOS_8_1_1 QOS(7500, 8, 26, 0x02, 2) @@ -122,6 +140,80 @@ #define QOS_48_5_2 QOS_OUT(7500, 75, 117, 0x02, 13) #define QOS_48_6_2 QOS_OUT(10000, 100, 155, 0x02, 13) +/* 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 Source. */ +#define AC_2_10 QOS_IN(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. + * #1 - CIG 1 CIS 1 (output) + * #2 - CIG 1 CIS 2 (output) + */ +#define AC_6i_1 QOS_OUT_1_1(10000, 10, 40, 0x02, 2) +#define AC_6i_2 QOS_OUT_1_2(10000, 10, 40, 0x02, 2) +/* Two Unicast Servers. Unicast Server 1 is Audio Sink. Unicast Server 2 is + * Audio Sink. + * #1 - CIG 1 CIS auto (output) + * #2 - CIG 1 CIS auto (output) + */ +#define AC_6ii_1 QOS_OUT_1(10000, 10, 40, 0x02, 2) +#define AC_6ii_2 QOS_OUT_1(10000, 10, 40, 0x02, 2) +/* Two unidirectional CISes. Unicast Server is Audio Sink and Audio Source. + * #1 - CIG 1 CIS 1 (input) + * #2 - CIG 1 CIS 2 (output) + */ +#define AC_7i_1 QOS_OUT_1_1(10000, 10, 40, 0x02, 2) +#define AC_7i_2 QOS_IN_1_2(10000, 10, 40, 0x02, 2) +/* Two Unidirectional CISes. Two Unicast Servers. Unicast Server 1 is Audio + * Sink. Unicast Server 2 is Audio Source. + * #1 - CIG 1 CIS auto (output) + * #2 - CIG 1 CIS auto (output) + */ +#define AC_7ii_1 QOS_OUT_1(10000, 10, 40, 0x02, 2) +#define AC_7ii_2 QOS_IN_1(10000, 10, 40, 0x02, 2) +/* One bidirectional CIS and one unidirectional CIS. Unicast Server is Audio + * Sink and Audio Source. + * #1 - CIG 1 CIS 1 (output) + * #2 - CIG 1 CIS 2 (input/output) + */ +#define AC_8i_1 QOS_OUT_1_1(10000, 10, 40, 0x02, 2) +#define AC_8i_2 QOS_1_2(10000, 10, 40, 0x02, 2) +/* One bidirectional CIS and one unidirectional CIS. Two Unicast Servers. + * Unicast Server 1 is Audio Sink and Audio Source. Unicast Server 2 is + * Audio Sink. + * #1 - CIG 1 CIS auto (input/output) + * #2 - CIG 1 CIS auto (output) + */ +#define AC_8ii_1 QOS_1(10000, 10, 40, 0x02, 2) +#define AC_8ii_2 QOS_OUT_1(10000, 10, 40, 0x02, 2) +/* Two unidirectional CISes. Unicast Server is Audio Source. + * #1 - CIG 1 CIS 1 (input) + * #2 - CIG 1 CIS 2 (input) + */ +#define AC_9i_1 QOS_IN_1_1(10000, 10, 40, 0x02, 2) +#define AC_9i_2 QOS_IN_1_2(10000, 10, 40, 0x02, 2) +/* Two unidirectional CISes. Two Unicast Servers. Unicast Server 1 is Audio + * Source. Unicast Server 2 is Audio Source. + * #1 - CIG 1 CIS auto (input) + * #2 - CIG 1 CIS auto (input) + */ +#define AC_9ii_1 QOS_IN_1(10000, 10, 40, 0x02, 2) +#define AC_9ii_2 QOS_IN_1(10000, 10, 40, 0x02, 2) +/* Two bidirectional CISes. Unicast Server is Audio Sink and Audio Source. + * #1 - CIG 1 CIS 1 (input/output) + * #2 - CIG 1 CIS 2 (input/output) + */ +#define AC_11i_1 QOS_1_1(10000, 10, 40, 0x02, 2) +#define AC_11i_2 QOS_1_2(10000, 10, 40, 0x02, 2) +/* Two bidirectional CISes. Two Unicast Servers. Unicast Server 1 is Audio Sink + * and Audio Source. Unicast Server 2 is Audio Sink and Audio Source. + * #1 - CIG 1 CIS auto (input/output) + * #2 - CIG 1 CIS auto (input/output) + */ +#define AC_11ii_1 QOS_1(10000, 10, 40, 0x02, 2) +#define AC_11ii_2 QOS_1(10000, 10, 40, 0x02, 2) + #define QOS_BCAST_FULL(_big, _bis, _in, _out) \ { \ .bcast = { \ @@ -182,6 +274,7 @@ struct test_data { struct iso_client_data { struct bt_iso_qos qos; + struct bt_iso_qos qos_2; int expect_err; const struct iovec *send; const struct iovec *recv; @@ -190,6 +283,7 @@ struct iso_client_data { bool defer; bool disconnect; bool ts; + bool mcis; }; static void mgmt_debug(const char *str, void *user_data) @@ -684,6 +778,91 @@ static const struct iso_client_data reconnect_16_2_1 = { .disconnect = true, }; +static const struct iso_client_data connect_ac_1_4 = { + .qos = AC_1_4, + .expect_err = 0 +}; + +static const struct iso_client_data connect_ac_2_10 = { + .qos = AC_2_10, + .expect_err = 0 +}; + +static const struct iso_client_data connect_ac_3_5 = { + .qos = AC_3_5, + .expect_err = 0 +}; + +static const struct iso_client_data connect_ac_6i = { + .qos = AC_6i_1, + .qos_2 = AC_6i_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_6ii = { + .qos = AC_6ii_1, + .qos_2 = AC_6ii_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_7i = { + .qos = AC_7i_1, + .qos_2 = AC_7i_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_7ii = { + .qos = AC_7ii_1, + .qos_2 = AC_7ii_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_8i = { + .qos = AC_8i_1, + .qos_2 = AC_8i_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_8ii = { + .qos = AC_8ii_1, + .qos_2 = AC_8ii_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_9i = { + .qos = AC_9i_1, + .qos_2 = AC_9i_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_9ii = { + .qos = AC_9ii_1, + .qos_2 = AC_9ii_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_11i = { + .qos = AC_11i_1, + .qos_2 = AC_11i_2, + .expect_err = 0, + .mcis = true, +}; + +static const struct iso_client_data connect_ac_11ii = { + .qos = AC_11ii_1, + .qos_2 = AC_11ii_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, @@ -1018,16 +1197,28 @@ static int connect_iso_sock(struct test_data *data, uint8_t num, int sk) const struct iso_client_data *isodata = data->test_data; struct hciemu_client *client; const uint8_t *client_bdaddr = NULL; + const struct bt_iso_qos *qos = &isodata->qos; struct sockaddr_iso addr; char str[18]; int err; client = hciemu_get_client(data->hciemu, num); if (!client) { - tester_warn("No client"); - return -ENODEV; + if (!isodata->mcis) { + tester_warn("No client"); + return -ENODEV; + } + + client = hciemu_get_client(data->hciemu, 0); + if (!client) { + tester_warn("No client"); + return -ENODEV; + } } + if (num && isodata->mcis) + qos = &isodata->qos_2; + if (!isodata->bcast) { client_bdaddr = hciemu_client_bdaddr(client); if (!client_bdaddr) { @@ -1045,8 +1236,7 @@ static int connect_iso_sock(struct test_data *data, uint8_t num, int sk) } } - err = setsockopt(sk, SOL_BLUETOOTH, BT_ISO_QOS, &isodata->qos, - sizeof(isodata->qos)); + err = setsockopt(sk, SOL_BLUETOOTH, BT_ISO_QOS, qos, sizeof(*qos)); if (err < 0) { tester_warn("Can't set socket BT_ISO_QOS option : %s (%d)", strerror(errno), errno); @@ -1122,11 +1312,15 @@ static bool check_io_qos(const struct bt_iso_io_qos *io1, } static bool check_ucast_qos(const struct bt_iso_qos *qos1, - const struct bt_iso_qos *qos2) + const struct bt_iso_qos *qos2, + const struct bt_iso_qos *qos2_2) { if (qos1->ucast.cig != BT_ISO_QOS_CIG_UNSET && qos2->ucast.cig != BT_ISO_QOS_CIG_UNSET && qos1->ucast.cig != qos2->ucast.cig) { + if (qos2_2) + return check_ucast_qos(qos1, qos2_2, NULL); + tester_warn("Unexpected CIG ID: 0x%02x != 0x%02x", qos1->ucast.cig, qos2->ucast.cig); return false; @@ -1135,29 +1329,44 @@ static bool check_ucast_qos(const struct bt_iso_qos *qos1, if (qos1->ucast.cis != BT_ISO_QOS_CIS_UNSET && qos2->ucast.cis != BT_ISO_QOS_CIS_UNSET && qos1->ucast.cis != qos2->ucast.cis) { + if (qos2_2) + return check_ucast_qos(qos1, qos2_2, NULL); + tester_warn("Unexpected CIS ID: 0x%02x != 0x%02x", qos1->ucast.cis, qos2->ucast.cis); return false; } if (qos1->ucast.packing != qos2->ucast.packing) { + if (qos2_2) + return check_ucast_qos(qos1, qos2_2, NULL); + tester_warn("Unexpected QoS packing: 0x%02x != 0x%02x", qos1->ucast.packing, qos2->ucast.packing); return false; } if (qos1->ucast.framing != qos2->ucast.framing) { + if (qos2_2) + return check_ucast_qos(qos1, qos2_2, NULL); + tester_warn("Unexpected QoS framing: 0x%02x != 0x%02x", qos1->ucast.framing, qos2->ucast.framing); return false; } if (!check_io_qos(&qos1->ucast.in, &qos2->ucast.in)) { + if (qos2_2) + return check_ucast_qos(qos1, qos2_2, NULL); + tester_warn("Unexpected Input QoS"); return false; } if (!check_io_qos(&qos1->ucast.out, &qos2->ucast.out)) { + if (qos2_2) + return check_ucast_qos(qos1, qos2_2, NULL); + tester_warn("Unexpected Output QoS"); return false; } @@ -1404,9 +1613,10 @@ static gboolean iso_connect(GIOChannel *io, GIOCondition cond, return FALSE; } - if (!isodata->bcast) - ret = check_ucast_qos(&qos, &isodata->qos); - else if (!isodata->server) + if (!isodata->bcast) { + ret = check_ucast_qos(&qos, &isodata->qos, + isodata->mcis ? &isodata->qos_2 : NULL); + } else if (!isodata->server) ret = check_bcast_qos(&qos, &isodata->qos); if (!ret) { @@ -1549,8 +1759,13 @@ static void setup_connect(struct test_data *data, uint8_t num, GIOFunc func) static void test_connect(const void *test_data) { struct test_data *data = tester_get_data(); + const struct iso_client_data *isodata = test_data; setup_connect(data, 0, iso_connect_cb); + + /* Check if configuration requires multiple CIS setup */ + if (!isodata->bcast && isodata->mcis) + setup_connect(data, 1, iso_connect2_cb); } static void setup_reconnect(struct test_data *data, uint8_t num, GIOFunc func) @@ -2001,6 +2216,45 @@ int main(int argc, char *argv[]) setup_powered, test_reconnect); + test_iso("ISO AC 1 & 4 - Success", &connect_ac_1_4, setup_powered, + test_connect); + + test_iso("ISO AC 2 & 10 - Success", &connect_ac_2_10, setup_powered, + test_connect); + + test_iso("ISO AC 3 & 5 - Success", &connect_ac_3_5, setup_powered, + test_connect); + + test_iso("ISO AC 6(i) - Success", &connect_ac_6i, setup_powered, + test_connect); + + test_iso2("ISO AC 6(ii) - Success", &connect_ac_6ii, setup_powered, + test_connect2); + + test_iso("ISO AC 7(i) - Success", &connect_ac_7i, setup_powered, + test_connect); + + test_iso2("ISO AC 7(ii) - Success", &connect_ac_7ii, setup_powered, + test_connect2); + + test_iso("ISO AC 8(i) - Success", &connect_ac_8i, setup_powered, + test_connect); + + test_iso2("ISO AC 8(ii) - Success", &connect_ac_8ii, setup_powered, + test_connect2); + + test_iso("ISO AC 9(i) - Success", &connect_ac_9i, setup_powered, + test_connect); + + test_iso2("ISO AC 9(ii) - Success", &connect_ac_9ii, setup_powered, + test_connect2); + + test_iso("ISO AC 11(i) - Success", &connect_ac_11i, setup_powered, + test_connect); + + test_iso2("ISO AC 11(ii) - Success", &connect_ac_11ii, setup_powered, + test_connect2); + test_iso("ISO Broadcaster - Success", &bcast_16_2_1_send, setup_powered, test_bcast); test_iso("ISO Broadcaster BIG 0x01 - Success", &bcast_1_16_2_1_send, -- 2.39.2