Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3437385rdh; Thu, 28 Sep 2023 11:32:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmRGEHrokeu06kG4eCt3ICydpHCaR0iYWAsV52uMwfqVtEp61Z4ViAKxoaZIJKN5QYnISF X-Received: by 2002:a17:902:efc4:b0:1c3:2fc8:1305 with SMTP id ja4-20020a170902efc400b001c32fc81305mr1623251plb.47.1695925925931; Thu, 28 Sep 2023 11:32:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695925925; cv=pass; d=google.com; s=arc-20160816; b=JYkVQHngExX7jk9BjDJ0KXG0avruhgpJYvowjjyZ3gHZ173yfYGHQZEOlXULsVCYs5 X7tZCkLADnFEUVR9grC6Mi2i8x917MwYp8eRsSRJpcAiJlMFo/L4AfvRS3PVlJ1unMbG 38QQ4Qq+KuScYUmNLvhOTqOZytyOAn4BNhCjaccjQOHlaXDahNYmIRVMuwimog6daibq kaP1Ek9A1ma6W7Om/lttCIQbx8Cq7WAz59HxPzB5QLpRXcuh0/JpXt32IChFeRNyxlAW L77DZuuPuhanKms8UqQGarPZ1zXv0HbtVtE9mH5yqBQ+0WsMradlDUEqK4jEVJN/XiiD r9sA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6grMOOf0XNs0FymnfxZcrdGFUHjnNma012J6olxVJtU=; fh=z9iGP4l7xSTEJRW5hsadvPrAVCwRvhfdVJbZYHezquc=; b=cIBfZ1EltT0z3iBBqgXyvTwfZgY/3P9dosplmJv95vcrmdRSaBhLo4vE6FQ/nBe79w ShxfNuc3kZ2/noCKl1Y/R9jTLhPnWbqnJK+6q/h4Sp8kU/S5JsclSuG1MyTLlhTSJDRU 9YQQkx1DzCUyGoxip+Djwq6UWbapfehgjPCFAs6PpGiOSsF5fVLKnaE3VPLE3u68uc4E PINeLTzpS/bvRGxGINoo89wrUhy1yLEhXjteoZ0mhvCJDupmyi7tP1BC3S31fOrIwgmT MA6U+oroVDiuIvCVMcbT36WuVh/pennbLqoOVXaqcOVKwSEYApwntclIdkoUQCak4bz5 onyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=XA2oZGg5; 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::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z4-20020a170903018400b001bdd35033f4si2836373plg.387.2023.09.28.11.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 11:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=XA2oZGg5; 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::3:7 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1E74F81D7703; Thu, 28 Sep 2023 07:32:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231480AbjI1OcR (ORCPT + 99 others); Thu, 28 Sep 2023 10:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjI1OcQ (ORCPT ); Thu, 28 Sep 2023 10:32:16 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2066.outbound.protection.outlook.com [40.107.22.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D567F5 for ; Thu, 28 Sep 2023 07:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DK1VGsKaiyxpE4O0eMhzxmLzYdRLVsJx3Q8dmjkBQ7q1Er/goZ1e9udd4KMwnKZlYIJhEda/UYc+MnmZlIUvFbwwQAZSc3cLTknXS9PUulFP9JqHY/8zfS0mO55e/sMC7XKEYLJTs3xxYRTffilLdyFZ9Ezn+D6cEWdzzVvKSrgLPWIsn3+fvzLdFlUFQbJFjDGg/7V9w9LluhPCjqMLGvcTScPLDQQ0xKZlvn/j3AWtO7FeJsgJn6ZIf9ONCJpK7GkzKTegGK74TnI8gYuMSeyijdfixwYPdRSWx9bsCm9fCNN3sSPAyhlHm7gJ6DcMbCsaKs2mo99RWz/bmz5vaQ== 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=6grMOOf0XNs0FymnfxZcrdGFUHjnNma012J6olxVJtU=; b=Usyrf+AqpZNUBpCtRH2dJYCJBpvfHQT31GQ3T79ZgYHXrPkfVQNUdw5Gef9LGT3hVud6KPoVOmnqIYr1JgHdCF96Uhx8bp2uG5uT6UsSFeznuKpuZjVohO5Y4CGTbyrLVx+LOOt5YpHULR+FF1ka0SYWLuf0DowYQp4ER2/rXjbtbYs9bSdw+7OaeEjoxLaAFW0mafxuUqjbbZYIKORZ4d0h0R8gCcD0JiFnO1tvF5zpd5CRH40AnAO4HiNXmT3NnHIXd05I7lma6H4Wqnqb2wohAHEHV2eftvFYY65hxpA9uLS8S4o4t+z2AuEcrciOwwA0tOIpt/fPMqdY93FGFA== 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=6grMOOf0XNs0FymnfxZcrdGFUHjnNma012J6olxVJtU=; b=XA2oZGg5GgV6kBvXaTWbCHKW2+gDs4swIDyFQqRY+UEFujO0WIIkg/KwFFc0FVql39rA4Xcd2vu8+adeHiQ7Z17i0nOAxvoGNVZfE9yPLWN+u3x/TXDOuw3qvJafkjKuynU8BHe7qVmKGtuXfe+5jYxccXEPixILG41OfHph6rw= 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 AM9PR04MB8745.eurprd04.prod.outlook.com (2603:10a6:20b:43e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.25; Thu, 28 Sep 2023 14:32:12 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7763:779b:1a89:47da]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7763:779b:1a89:47da%3]) with mapi id 15.20.6813.027; Thu, 28 Sep 2023 14:32:12 +0000 From: Iulia Tanasescu To: luiz.dentz@gmail.com Cc: andrei.istodorescu@nxp.com, claudia.rosu@nxp.com, iulia.tanasescu@nxp.com, linux-bluetooth@vger.kernel.org, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com Subject: Re: [PATCH 1/1] Bluetooth: ISO: Allow binding a bcast listener to 0 bises Date: Thu, 28 Sep 2023 17:32:08 +0300 Message-Id: <20230928143208.3256-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1P189CA0030.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::43) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AM9PR04MB8745:EE_ X-MS-Office365-Filtering-Correlation-Id: ff712b99-8450-4b46-b83c-08dbc02fb3ab X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IDuTEP6G6z/2ehyP5uyf7rnWi26TAc/ZkeZyXRi8EP7JfcYCny8Irdwf2dobct4jljUw9ZmoDp3yLvDLcdjup8NvmcnG//rOW6ZUobRLbU727r5UvSG1HL1lKafg/VgVTvSOs0U1JzCNfpFwNSaV/taJQJSSF6faTL+V4gqa9hTGBuKQB8Mr7m+qfttJLHxsI6LYPcHPKuP8Yk4wHiOkzgoAZY2/fanUaI/5PPPd97yRtPUbtQnJq1ztG6sGHQIKJvByPDa/Ucw838ncfZ5/B/wdyWZPpa/80mo4eDRFi8UaKpQZlLkfcly/+RlPIWPFwze9FO2Wu7q5miOj7hEw2XvXKNnUoTRZb+MvN/Z1yzi2PDwxFFzyaFpUYoGlsd9aceoEj+Y37kT4lBveJxhVec4CXCZyHMC+8kPmAdQY8ah/q1Fr6y9B/4KrDmwVIaPs71Nv7v4emeCj0rHSIqUvkox343V7dq5SlcLn434lDWrFu6dynP/YBaSelJ3a0gDAg0iJdMge1Yl6d+0qRQoipXzE2ChGDFf7ADRwoBAMrAdUZ9fEig6KOSEJ7CQxkyrvxWqJHx8+bIU7SggKa/HwlgS1LLmF+NCTmNSuMB4evFBrbY3mu+KwqEQENxPPEI23 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:(13230031)(136003)(346002)(396003)(376002)(39860400002)(366004)(230922051799003)(1800799009)(451199024)(64100799003)(186009)(2906002)(53546011)(6512007)(6666004)(6506007)(1076003)(38100700002)(2616005)(66556008)(66476007)(66946007)(86362001)(478600001)(6486002)(6916009)(83380400001)(26005)(2013699003)(36756003)(5660300002)(44832011)(41300700001)(316002)(4326008)(8676002)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Trzt/TEIs2eU1V+whtp4SPvZO6opG60c/CyND0QiEN4IN0fZMbkGyLOWW+Dl?= =?us-ascii?Q?RYYvsyLRmVed7rNw2NuVMZVeNGgylIdDvNza0Yf5eE3iNo/UXiCkq9AJYvW8?= =?us-ascii?Q?JzE0+Mc0df2fD57oh0PBpAlMPME/cy5WlcJxKUgLWZ6fMZyWpwW6DGcGSKZ5?= =?us-ascii?Q?0IrxCCN8Hrmf0If+DbMXZnCnkObUb521+udNV/vjNEVoSq9HfTAistYKWJOJ?= =?us-ascii?Q?6FriGiv3p2OzQWcRWc4pNhK7tB/lQbpKAxy8Ls7XED4gVCpXUtfWCoWprTII?= =?us-ascii?Q?jqf5SwDjbzAnA7y07GBTKJeWoWsVsT8LYuLUJYgO7e6Q7m6aR10mJ2l7tlyz?= =?us-ascii?Q?fHL6hMf3GcqMNUY+dH99bG2bNMKFvxj9hUhVOeEIsM0J+F9m7vN7mABhwEKy?= =?us-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QuNUeVtoz86lU02qrzrBeZwqKPdc2E+X?= =?us-ascii?Q?ekhd19n9x+Vry6qBdj+h2ocLJxGiZgU3NW1ix0iiRqOmVFIeyfggMIIxIJpe?= =?us-ascii?Q?or4dprm5h3oKbhpR6IowHx2L3xWdYqQrZfc4EoIdViwsqr6XR2wRLyRKCEpm?= =?us-ascii?Q?wSgX9fkSbJLXCoWpi+b3nkQcAjMlQz1PjDpQuGYWR0kqpG3VuLVc7Gccz0q9?= =?us-ascii?Q?2Al83caDx8KFpmpzfz13EUkrd53LZMCxpKHUpEpxVXG69IUkSTaDPRukeD6s?= =?us-ascii?Q?ELPi6wiTUKt7ZnxdcD5s4WFIgGT1uRhpL6cPJK1i2ShA4PSvjdfr2BZexT8r?= =?us-ascii?Q?mw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff712b99-8450-4b46-b83c-08dbc02fb3ab X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2023 14:32:12.0536 (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: ttH9DtBphEqSEWNHsmvH9NCZil+kVm1AW48zRb2DZURl4EujHnIO73tSrTv3vHM1nCoCHVZiA4kEfK0Cu0wX1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8745 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_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 07:32:18 -0700 (PDT) Hi Luiz, > -----Original Message----- > From: Luiz Augusto von Dentz > Sent: Thursday, September 28, 2023 12:49 AM > To: Iulia Tanasescu > Cc: linux-bluetooth@vger.kernel.org; Claudia Cristina Draghicescu > ; Mihai-Octavian Urzica octavian.urzica@nxp.com>; Silviu Florian Barbulescu > ; Vlad Pruteanu ; > Andrei Istodorescu > Subject: Re: [PATCH 1/1] Bluetooth: ISO: Allow binding a bcast listener > to 0 bises > > Hi Iulia, > > On Wed, Sep 27, 2023 at 12:59 AM Iulia Tanasescu > wrote: > > > > This makes it possible to bind a broadcast listener to a broadcaster > > address without asking for any BIS indexes to sync with. > > Is the intend to use this logic for discovering broadcaster? I guess we should > make it clearer and perhaps have iso-tester also testing its behavior. > I have been working on new unit tests for BASS, and some of them require the BASS Server to only sync to the PA transmitted by a source, and not any BIS - for example, BASS/SR/CP/BV-05-C or BASS/SR/CP/BV-06-C. So basically the BASS Server will call bt_io_listen with defer setup enabled, it will just perform PA sync, and it will notify the BASS Client about it without also continuing to perform BIG sync. I submitted a patch with an iso-tester test for this case. > > Signed-off-by: Iulia Tanasescu > > --- > > net/bluetooth/hci_conn.c | 2 +- > > net/bluetooth/iso.c | 3 +-- > > 2 files changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index > > e62a5f368a51..c4395d34da70 100644 > > --- a/net/bluetooth/hci_conn.c > > +++ b/net/bluetooth/hci_conn.c > > @@ -2138,7 +2138,7 @@ int hci_le_big_create_sync(struct hci_dev *hdev, > struct hci_conn *hcon, > > } pdu; > > int err; > > > > - if (num_bis > sizeof(pdu.bis)) > > + if (num_bis < 0x01 || num_bis > sizeof(pdu.bis)) > > return -EINVAL; > > > > err = qos_set_big(hdev, qos); > > diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c index > > 2132a16be93c..8ab7ea5ebedf 100644 > > --- a/net/bluetooth/iso.c > > +++ b/net/bluetooth/iso.c > > @@ -790,8 +790,7 @@ static int iso_sock_bind_bc(struct socket *sock, > struct sockaddr *addr, > > BT_DBG("sk %p bc_sid %u bc_num_bis %u", sk, sa->iso_bc->bc_sid, > > sa->iso_bc->bc_num_bis); > > > > - if (addr_len > sizeof(*sa) + sizeof(*sa->iso_bc) || > > - sa->iso_bc->bc_num_bis < 0x01 || sa->iso_bc->bc_num_bis > 0x1f) > > + if (addr_len > sizeof(*sa) + sizeof(*sa->iso_bc)) > > return -EINVAL; > > > > bacpy(&iso_pi(sk)->dst, &sa->iso_bc->bc_bdaddr); > > -- > > 2.39.2 > > > > > -- > Luiz Augusto von Dentz Regards, Iulia