Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1299621rwd; Tue, 13 Jun 2023 07:26:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QYcupa3XT8Y0dA744mkk34zifByXC3wdJ9K5nw5r6j+eLsYlEqFmAQxL8/cgIpogXWXuz X-Received: by 2002:a17:902:c20d:b0:1b2:4e50:f22e with SMTP id 13-20020a170902c20d00b001b24e50f22emr9320390pll.1.1686666394765; Tue, 13 Jun 2023 07:26:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686666394; cv=pass; d=google.com; s=arc-20160816; b=PgYuNBfgZZiluLl9PzvxtY7Q2sRRvZlhI2JCIisHlchuF2FRNAar68Gw9zy0q7akXL aLMSX+1E2eXhJ4AGDiw53t5DTa4db3OlafLiVPqQ399iRF15NbO2bbmb/HyuqbfZEM38 NSO4ofxzjiBq04gpaaSyguCDDJqGH2Wp36PZz6sB050UULfwSlox6yePgqXIYYmggsSc UQqEQyFXLZui1+AhKG8n2lXfgDyNnM9q0pYr5tneW9fGQP675QqpyjwZFgQVE6CqglJt 84xohd0DAH6ecRdGV9iY8AjlTQSLTovHthobFMnaAsrefLUAUdDDEQQusSxjzij9+h7U r2bQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=+HVTzuHi4zBf62xYFmbyTbFWudmVQaGVcS4YEFo6aEw=; b=PPH9b0FYa7AJndzBepa4Mf8/76XkmTbEiWDBWyYzn/e9FcLBGmXCRHbBFLr4PRSKCw kCXPaxGCcIwS1t69raxKkSiCgtr0OCGGR5cqV0hTBo671xxoA4Y9O5LLNxELZxQUDP7u uj4ZmWfMGvJ53SKeDeBOuKls1sZAmGcYRHBj+nzuq4Db1bEf1hRk6H2DPm2/bTNRFoPK LBmlzxZzM8YSrluHLbPhLJn6eJknygdKM/QpLfB1hdO6DJyhmSW9To278zX05AjbUE+b kH/J4vCpz4vbQAiwFp5bySAA/6ooMAbnAeMummNPfJUPnTC0VkdI3qNGrNAitOtSww2u qXWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=XbBeFJuo; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a17090322c100b001aadd1e0384si9328947plg.192.2023.06.13.07.25.58; Tue, 13 Jun 2023 07:26: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=@nxp.com header.s=selector2 header.b=XbBeFJuo; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239102AbjFMOUt (ORCPT + 99 others); Tue, 13 Jun 2023 10:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242756AbjFMOUr (ORCPT ); Tue, 13 Jun 2023 10:20:47 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2055.outbound.protection.outlook.com [40.107.8.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CF4B199 for ; Tue, 13 Jun 2023 07:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MVBkYBv0tG6G8N8OCDNWuVGIlYmkqS7kq0wiLBVyK9XeAMVnkTPlMB/nhw0Ll7oEkHgaHFysQY7crqYzTyX8rhfAfcaAtE3K4r29epMOjWBYaZW31NK7AH/X285QVMyHx49eArSs8yb/7Kqu9JvffuZr7MMtH81Khq9hCr7zHB+BaNA9e+UcLeRu3OsH7t10OcpJPSg5z0wOLlxAmOdeR1Wd6+M/TMhSv1EUD3ix9VO0xlAXRMS9907jp+FHH2Pt05SfJa4201obyCUb8jho6osDmCR1p+THKkhvZnDsptIdRaRszzuL9yMBRkvKccAfdaVBzk4bVzPk0dbyi8x6bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+HVTzuHi4zBf62xYFmbyTbFWudmVQaGVcS4YEFo6aEw=; b=nKF+yVBldURzfvNlpkjLb2dLotL+L2S3cVy3E33WYpgOCinq4feRN5FqkdNzsJmV2GTKjSjB3PFaxbMgmg4lrc8PxfM136YEM+npT2dRlIFxunbTOA/eAre7jg9MGVUBuoDqck1uzogO9yUzdgq5o0nom+v9eLnCS80w1yCMDBFo+4nXf6yeIgzbaMXe4vjGmZD+BcpiH4FxCdZhTqGycFqtP4nRhDrkkMrPLkjlzOxh8AcS73kpKZQrc7RxliaChBiq+j4sH1rpt5xFaLtO1OrTyhTHY3QptonvisPmOfFsnt/G8eOkpHSiGeZfgSQhFTqTb0Ldq3+LskwTtRnsvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+HVTzuHi4zBf62xYFmbyTbFWudmVQaGVcS4YEFo6aEw=; b=XbBeFJuoA+DrqSldD7Bd1aMZUWj/4PdOXxDRlroLnVX/Qx+RhW9wqSq3+9RhxHl8eym2LqO6NEFKCPXi8NRcPKkstOUS14m82TFVRn+rRijNc3cHXLt13xZgL7RaCfJDBENFBmjEquzGOrTz8p5regBzCfTRp78WwcG8fwl7OOM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by AM0PR04MB7076.eurprd04.prod.outlook.com (2603:10a6:208:19a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Tue, 13 Jun 2023 14:20:37 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7526:7510:9b32:e1fe]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7526:7510:9b32:e1fe%6]) with mapi id 15.20.6455.043; Tue, 13 Jun 2023 14:20:37 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, silviu.barbulescu@nxp.com, andrei.istodorescu@nxp.com, mihai-octavian.urzica@nxp.com, vlad.pruteanu@nxp.com, Iulia Tanasescu Subject: [PATCH 0/1] Bluetooth: ISO: Support multiple BIGs Date: Tue, 13 Jun 2023 17:20:16 +0300 Message-Id: <20230613142017.9337-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM3PR03CA0058.eurprd03.prod.outlook.com (2603:10a6:207:5::16) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AM0PR04MB7076:EE_ X-MS-Office365-Filtering-Correlation-Id: 9140647c-951e-45a3-66c1-08db6c195bd4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XQ3ubUUDZnNfZktsiJClIYmNnbve9NYCElTSh4p30iH2qwqeqCDFNtkAV3lQV7mGwb6TiieEq13hClzPYKC4e/QmN+tC0or3HWpNZKQ5ffT9Ag2gJF8jeH0Iy570K5b6LTfJSoxo5G58JlAqxAYsZQ5RvfUP0U3ztqiLHtkRyBxKzD2JcMlMgUFH+i+JLFHsVR5kksZJiCJxeCxzP7Bz7JO4uCCVOoe1Sy8ZYCddvUY8lb5n2XO1n9GqFm7wmeuuF5fnjeOgxvcD2NIJPVVJN9+CFSLbiVUMwRwaaAubN7FtiYeDl8r1O7ctX1eCoAYmL16AxKCpXVSiihYrfbWCDSV/K9ct9PStPTioOQipC2XpPZnUbGBP5nzeSBS8p/4HYPNniQ+CcGLA+ve2bO/RRg1mKh8QyOcCK9ttGmgWfypQyaLK9DYbWKXXxWukkSNBOawCsnvRvNmncUEsejynHZjvi/X3Fss2rbxaHeMAMBbdJ8Mk0iMQnge8uKrlI4BqqamOJnHJdF66AyBiQ70uVFnmQNNIdfP5ODmkd2M+tYHv/qiSseVbRPTBYsHVRJKKy3I6yV5zvQ6KGPGjABdFMQtmwQdMplAfYIBpittRKTELU1DeEBNuJqhBA1una536 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8898.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(39860400002)(346002)(366004)(136003)(451199021)(6666004)(52116002)(6486002)(36756003)(83380400001)(2616005)(86362001)(38350700002)(38100700002)(6506007)(6512007)(1076003)(26005)(186003)(5660300002)(6916009)(4326008)(66556008)(66946007)(66476007)(316002)(44832011)(2906002)(8936002)(8676002)(478600001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?sGF3nACb6GChVoXZe55o+xJ3z2VL7e4XkimnZy2dJKTHNmEtmaW3MpQ9rozo?= =?us-ascii?Q?FYYrCbBtik41RC3Yg2AHbEbLXmXrYozf56le/eMXQwfRUCJX4IinyzUMxXyv?= =?us-ascii?Q?tf0yll7VXRtl7aMoiX4HQNacD+ha03KhnyuqddNnFf1QaWXAdsdqvEY9QTh9?= =?us-ascii?Q?Y9K7KlVsNTNsyG0HKYxXTC+oj5Ifcy93NoelnJnhHq29FMIBqaZcFhCeTOND?= =?us-ascii?Q?QhTfRJorpcvGCYHYhqWyqls1BU/S884HT9VwXZ7D7oAHGMjKPan3Kr9ZzLCM?= =?us-ascii?Q?XcnwOa+1pKr8dhdzWTIGHqLy6JL+CV1eT8E62PyUcHqFAKnzHRN1E5eHNEWh?= =?us-ascii?Q?ibjQbBnjA36ZL0Xb+M9DPi71zDCpGWCc/gUz7LlF9jPvvc2rNRDP0jvcB1Hm?= =?us-ascii?Q?V9QMOsrylihmOJdLRhKp4CP10zf/A6dqVxLxao6dPsg05txYfQFNqaUcedbm?= =?us-ascii?Q?CJDOfPG7oDi23THISjKotlzteFwg8rWM2LnqWTw5i/8Mk9IT0YReQtjTBpOu?= =?us-ascii?Q?qZ+Q9ooXcrGDpdYah8DQpNfKbAhwIjPH5rOfUvaE5iR/Sr3jrArsRqVMrTQK?= =?us-ascii?Q?fNqGcZXV6HCW+ffJtfaUgDDBCV1A6VMo9d4ho89bJWIMZFsf3oFuhI17iPtZ?= =?us-ascii?Q?iFVksqf6vFHq+ZQYt/2SsOVQH135RNl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I24p2tEE/sBZ/a40N4HnphUoR/tC+VHMRPgdis8FItNJ8?= =?us-ascii?Q?/w=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9140647c-951e-45a3-66c1-08db6c195bd4 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 14:20:37.4948 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JFnTDEjnlGqreJBN0JipS/Di2yxtZFrLHDpsZ0rynktEU08DqzkgVCEom8a4bvlmbpKgtZgvXx6F8JyOqrdFuQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7076 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 This patch adds support for creating multiple BIGs. According to spec, each BIG shall have an unique handle, and each BIG should be associated with a different advertising handle. Otherwise, the LE Create BIG command will fail, with error code Command Disallowed (for reusing a BIG handle), or Unknown Advertising Identifier (for reusing an advertising handle). Currently, if the user tries to connect 2 sockets with the BIG/BIS QoS fields unset, the kernel will assign the same BIG handle for every BIG, as seen in the btmon log below: < HCI Command: LE Create Broadcast Isochronous Group (0x08|0x0068) plen 31 Handle: 0x00 Advertising Handle: 0x01 Number of BIS: 1 SDU Interval: 10000 us (0x002710) Maximum SDU size: 40 Maximum Latency: 10 ms (0x000a) RTN: 0x02 PHY: LE 2M (0x02) Packing: Sequential (0x00) Framing: Unframed (0x00) Encryption: 0x00 Broadcast Code: 00000000000000000000000000000000 > HCI Event: Command Status (0x0f) plen 4 LE Create Broadcast Isochronous Group (0x08|0x0068) ncmd 1 Status: Success (0x00) > HCI Event: LE Meta Event (0x3e) plen 21 LE Broadcast Isochronous Group Complete (0x1b) Status: Success (0x00) Handle: 0x00 BIG Synchronization Delay: 912 us (0x000390) Transport Latency: 912 us (0x000390) PHY: LE 2M (0x02) NSE: 3 BN: 1 PTO: 1 IRC: 3 Maximum PDU: 40 ISO Interval: 10.00 msec (0x0008) Connection Handle #0: 10 < HCI Command: LE Create Broadcast Isochronous Group (0x08|0x0068) Handle: 0x00 Advertising Handle: 0x01 Number of BIS: 1 SDU Interval: 10000 us (0x002710) Maximum SDU size: 40 Maximum Latency: 10 ms (0x000a) RTN: 0x02 PHY: LE 2M (0x02) Packing: Sequential (0x00) Framing: Unframed (0x00) Encryption: 0x00 Broadcast Code: 00000000000000000000000000000000 > HCI Event: Command Status (0x0f) plen 4 LE Create Broadcast Isochronous Group (0x08|0x0068) ncmd 1 Status: Command Disallowed (0x0c) Iulia Tanasescu (1): Bluetooth: ISO: Support multiple BIGs include/net/bluetooth/hci_core.h | 6 ++--- net/bluetooth/hci_conn.c | 40 ++++++++++++++------------------ net/bluetooth/hci_event.c | 30 ++++++++++++++++++++---- net/bluetooth/hci_sync.c | 9 +++++-- 4 files changed, 52 insertions(+), 33 deletions(-) base-commit: 817efd3cad7481ce2ee25fac5108afecbad56228 -- 2.34.1