From patchwork Thu Aug 29 09:51:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782915 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2080.outbound.protection.outlook.com [40.107.105.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6AB218E037 for ; Thu, 29 Aug 2024 09:52:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925161; cv=fail; b=XDNafNuDjiz1l4U+S7fV0Y4JwmwIv7aTutvLerewjDQyPlVaZIcaxjtYk+4MlVAB6ut5B+LxmdCcVtEJG3L8R2XWuiSgi24Sinhm1DMEV5FniluSdKqY6QGlpeuoj3RamQSrQeEg+03eyYeVJumWUWBI+DiWgT2EsweWJ+yaJnE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925161; c=relaxed/simple; bh=jJx/HJ4oyiZSbsojYq9nWLI8CC0iSABsdLsiDvBv9lM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=CLBmqxqfetmACK/KH6ZlTXGU/845SU+rWkJ0rha0adlYL2vcqcErd0OfuWEpAVnCbmgfbtx0AacgH51zd+SzSJz0j6QPQDJTo6/vTFbU1DfyndG/iypaOXagp7TdBI27IFYTKaWckPWdN2H7V04LtNQi3WUcIb21DkOf1/yfnTg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=MYXFzFgj; arc=fail smtp.client-ip=40.107.105.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="MYXFzFgj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F0Q/OfyUvDlQ+7At0p69KXDRfF/gUNAL0iHBGicYpD0VEFWB1LMj1z3Xo7zTA7P7aAG1NPf185k0yEpKhIdo1rl0BP4ITJpXi3EpzVEpiJ0xl0hkoPhcmLgHoINKpIhOnaWxF11bKycQt1qaT4qjn027LMG0OKabcPVK0egzn1xEK9URUAi5Jkpji7KwJ9Krrt5enEB5gV/ElI/P6d7/djeHbGgs0191LvcAd1yrSr5j6SEYOQR5SiKj1P9McniDKLstN4q9cyIhGjWwUq0yEYUMCdoPoklx+ttcSEtCXUy2cuYI+s6UJuPvGqL6SHtN+DyMc1Cx4NAU8dqW/vQtVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=RC94fB2eIIipFeark4V+xoIwA31K9XXoqF6QVedwCx0=; b=hQLJ2TtQt8i115FzX6OhbHdrmD+4BE0R+FE4Rg+yc9hrS3gVi1YBMAfPhVqkvtn1T+JEDR6qPMUXjPo6Dw55iqbz0xObGlA1D3ZapZrJT+haTVYgcas87jl1GeGTRRpQ3uYfen5OTsSvcIjM/Zh5i3yupMYUYJOqETt27JaJjQjqfxDyY0WDgevpxmA0kAMep8vBNlgpIXudtT8rEi/zyr+yslSRyuhF0wsGi1TfU5coDiFQDw54cEjcEnDUaZb4rEoYsjkJMie3DqpVMjh+CZt8HvgPZubF+XwSNRLsNM5B9xDx9YmSgHVdE0LiAPq/YvOMcBCNhjD/mo4H9n9fWg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RC94fB2eIIipFeark4V+xoIwA31K9XXoqF6QVedwCx0=; b=MYXFzFgjWkJ1G2iubWeQIk5S46KNz0rYCZOyxCAB18Y6LJAV+/QYDzgIOFryL4oOcHXlHO2nuJbQu9nFXPbusqnNO5F6WDHlMsq+MUPgl9PgMEou9XPvQtyBxHkCvlXmy/op6JJrZVbf7QcY5AzgZlCg19Nk8wv8dhMQG1y3SQoGDdVq9qBjGOAlPkSjAj3MTrVhbijeZX0sR+NOBNqXYRwHqtUrKjRQa1PqkyPMqVdiQHqVyxfwlD+uvymHRO1nhP2g4gHH8xRXo6XPWjh3wdTomTYgmSqK+ST1JNlEbRQh0leXxFvHGCpsXDxF4RjZae/DNzklnT8ORRnRNR+MoA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by AS8PR04MB7720.eurprd04.prod.outlook.com (2603:10a6:20b:299::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Thu, 29 Aug 2024 09:52:37 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:36 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 1/8] doc/media: Add Encryption and BCode fields to QoS property Date: Thu, 29 Aug 2024 12:51:59 +0300 Message-Id: <20240829095206.91150-2-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|AS8PR04MB7720:EE_ X-MS-Office365-Filtering-Correlation-Id: b6294c98-5d84-475c-1367-08dcc8104fda X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: r0iIuQuaeUH3FdBcKOqZcuVAlH3t7YWpxLmTo7NKkg0sgbeRpdPTI5Tr8F+/pnM7aeZGpf5ZqLuUc5wHd97taOZCAKp37I6OszB8X3HCaMBBDqs7uMnSUO8YCFJKGYGvH5lH/pb9Rx9stHP2LRm2QD6HHTmcKXe/19iN7OrkfNDX/Az+uGWPOkQ7RqNPx4KslZ0VG6HR65kiv1zd4NFq2szfdfzHPYpOCpL1fet/lvnBXOclXkr6Z9Wnkrsjwa2tv5rOFHPc5L3R7Ekg/SOab2ewvhkoA/fDi0/Y2qsk6H+Atd9PphF5rKZ5e2nYC0Wasw0CsCvqG6dqDcXnR6yIzQ7MmYk1z4aVPyVF4ptFjYceJtGESgkK8pvDIfzh/32DpwhtCZnpWmedFu+FNw9V3st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;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dau85gRJAhG3itS/KCR8Uv1FtEmhHi6tVGMpBgzMhBClZIcxoEleegIhsz/c/uGasghvbwDl+s+AO0Uk9aP1Md+7FRvNYWx4JzZTuYKAsGBDhFM4UfQGhnJVvC3kCvDDtN4hNdEtMGuPwA6eYWdFsx0/J0cNsATSDV00iY3F3XvhmSJ7e+VbXavaYoeXp4E//QY0j+nRwb0hEFRbTB0HsFeWbC3VFKMd6yzimoGu5KuIs9NLBzjd6i3ndYTPhHZQVK76EeIQhH9vL1vaSFY9rOMmeENYV5W/pyBbq0RIijI3AfLO6ld5EHfA2gvaEp6Vbyik2DJaZJp9dqFGxJGrQh8z8U5c7ZA+Tda23LTlDqEP9rN5Tu/8OfR3nwhKSJoGHawkxmpplZfQRSo/OdUm/FV3Xq2J7Bb9yX6SKTv8Jfbp7LaIu1w4w5bAogTSeJU2IudcZqe6QEM+PYmwGNoCOuu4AsqHc6fA7IcGpGhge/yuJAWR1KuUBYptH/ODE/wy9DL6+6cj9nJQ33winqF89i4TvKVHn8lWl6xqxu1NdFbcT7QC9ig7Z2llGdGexazn7USRH3MbRVWnZDQmJm0P/t6xbSU4yWFvhUfzzUwtSwD8LyFvr4oXqCBiHM6GIpU7CWfeOXTo0Bv1LFZ/topLG5C4p1Kv7Q238Eypffy+J+ED0yysL0TjpLMX2aclLQ5j1WJS7auqS3wSLkszqrfU88O/Dr70rtyP6yo3UDAkRyvEyBvj3utqfj3c0xvl220EDgDmgAAaAp/IzWVSLpkO4yoUWyiOGYwDZ7V+ioax59VGsm2LfrNFbaI4axPNsBmLU+NMGHdNCMI7+BpVN4BDXNr0fJzwGEopLhTFcXmRFYnV/8d4T2qRi/hWcpmBPndMGTvhDmdRCfEUlW7gEms++qv5B9VywtJ3BpkXkBIfYFXs3PXuLPhYzPsKLrUupOSsatIlRL5pLn06Tu1fQHVhTv1joGvGbImajhMgvfTdQBqEh3jY3x8cz32Hm+Tfg0WY2S9SitWxqrrMsbcZYtOImGvE1mHLcv1yblofT4kTrHZnG0357Y0aeiP178JMS7jkMZ/EnAKf6rk5WiyDT5PopPoQBQz3j5qMuc4yWYevbu3Dgvl/B41mlf/nH0RyuNgocgPXUERAl3+t/kHr3XoKtFnPmVwzz9hpvV+fMZrNU4OpVou8R7hHqAknI3GJBQgiVv5+FfeNu+aXZigNQkzfw30SuR2elbPNn4WzBWpKFo5WbtE2E1TKdpKpX/PiA4ZYDnZ2PKbY9Yakib2qaEwe8pRJfTyUeW2XuLu6BRSOWPKQFmnTqIYI3iqjfLgHNZmtOW2gS31GGznEzAbcqQpP3wP+9L2W6hMGGG9uMRvwWo5fX/nAkxc+HdFYlVbn74al2uJfk7/u24UBp27ZwbJGGlw2MsE1oz9NUR/9jQUj+XowspchpJjPsvma8wzsybNIh3bPFb6VEctOHPYE0UxS0S6SHGnXn4fczswj9M1QucC2XoFPRp/HVtnafNiT93RsGN132hiFncZOEoOq69f6JBjly5CQwPFRhbEnHn5PSB1se2CFOFsaziUdEoDhdVmb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6294c98-5d84-475c-1367-08dcc8104fda X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:36.7238 (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: 6wpcxJIFeC+1WPOrGa5UF1XI8UHErmLQHUbBbj1p9DNHjdF7Rv0AqKEJoGGC8tT22BGigXVg/Oyktg6n9AkFWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7720 This adds the missing QoS fields, Encryption and BCode. --- doc/org.bluez.MediaTransport.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/org.bluez.MediaTransport.rst b/doc/org.bluez.MediaTransport.rst index eb3e04ae2..b53c0cd26 100644 --- a/doc/org.bluez.MediaTransport.rst +++ b/doc/org.bluez.MediaTransport.rst @@ -242,6 +242,14 @@ dict QoS [readonly, optional, ISO only, experimental] Indicates configured framing. + :array{byte} BCode: + + Indicates the string used for encryption/decryption. + + :byte encryption: + + Indicates if the stream is encrypted. + :byte Options: Indicates configured broadcast options. From patchwork Thu Aug 29 09:52:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782916 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2080.outbound.protection.outlook.com [40.107.105.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D560C18E04A for ; Thu, 29 Aug 2024 09:52:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925163; cv=fail; b=Jh2DlecmeB9Sx7SQM4BaKOCi/lzfESFRQQuWZdt5Ii99PAexQ6tcHgQMmQkPaED8D974zlLaD+Ug3KJgmwvXCaReFu+d4Qu547gQp2lMg5dldVKco1TSh9NNzYfd5/ox3BXFtVG5FpGdCsKtlfV4yuYsWhFkmAxC1A8rr2n6GDI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925163; c=relaxed/simple; bh=NUSt1nJT7sKygv4xw0kO1WAyxC05uiXUoJ0VFDqIOHE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=lhAt0TGxpkn+r5xDh2qq9jP6BY8M+MX6xLZzrbDeC591SNr8nBj7VVBgidG7fqDYl6YlarDmOvh4pm900+cvxxjXGBfoFehZcjRzcn07QihCixxXlGO0/P6vT7hHzVckWViL7ijDmoUxwVPVzkMQW/MYUDjoCk11/JbdrrZSbck= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=MUrPvLiB; arc=fail smtp.client-ip=40.107.105.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="MUrPvLiB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kPpFEdSUzYFbH6nip4zWA1ZyAuYa0Az0bvOk6FgmkfjdwJPPdH1pTY5XvAVeIxeS1IrnEbmzti/tqsuyKwHiiOgDePUF9o4QqVWCHCpTwvFiT4b2st0zOmYdDUbUs27X6vZrbwqXy86zW0nFfPO5zWa0taN34ds/Rd59//iImPR7T+PKSIHcgb/woThdRbo+AcyQmhyPs5GSmCVCWX3r7/rGMofUg83HhOq5YpuBjDVqnSkv4sGIK2owT4dYj79UipZatZH1PAxpdAP1XdhrL0w0CWDT3HGmyfKKObN+liSvVGSany+bZSDEAokg72yTa4zTIcyEVpmH35AR8uErxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=MkVX4V+r82xNgWqE0GXl35HsaW2JcsXVuIgU9ldPBiw=; b=ra9WUxENFvd6NXv6dB1B5yDijHRlWCS+R1BdpYzamiZwUCKJoaBusf3JClhqV84J4s4LrhkyMjwd/P+UgibNC1ASO8OBISzp8Ch6548zaRATO/+RAn0UfS9uJs8bEkaIsSx7qtXvExHdGBghYwzQS4Bb9zUrmZdjH0XRo5aukYHYEWg8c2j9QGl1qqDQFetRhmCco+kzwqnGG9K73DMoGttpk65bS4I9Of3kuWLmcsOUsTKjB0ctKfhpwgb1vKcFKNtBh5KWFd+kZYi2e3xVVXzR4Y/mKnpHYVrJN5eSHF2A7oT3X5S6/erru6mrjh1BKjh9hp2jGYn+l1JXfQjtqQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MkVX4V+r82xNgWqE0GXl35HsaW2JcsXVuIgU9ldPBiw=; b=MUrPvLiBcW8W/6BW8ovsQAWv6dvQl5XAwleXsklGdVhfJotdzP+FbPQmSUgp6kXkquP4sS4KeuxLCzdDncd8r2tynbSj+Bj6Hbt8LU5x6+Hv8/JwCcWlIpPWLF0WucFQj9F4DJWvKhASOxfEbLqfHVur8V8xDmJPsn4oI3qennGVhiRgTNAkDZnsDsM/UWLxj5PKUeFXZX+plJLCVMGi+evbwMKgRlv3QNIF2Z5nDMCB1LiMDsENKgu9kVSW+tXvyHXSFG4W3CNnz4OSSvvHw39HiVpijB3jDuuFG4I6B+6x+XnLVwlTJw6gKw6oVuSn7bc+VeJxfQlPGznWWQF/JQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by AS8PR04MB7720.eurprd04.prod.outlook.com (2603:10a6:20b:299::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Thu, 29 Aug 2024 09:52:39 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:39 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 2/8] transport: Make get_bcast_qos return the encryption flag Date: Thu, 29 Aug 2024 12:52:00 +0300 Message-Id: <20240829095206.91150-3-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|AS8PR04MB7720:EE_ X-MS-Office365-Filtering-Correlation-Id: 4954fa23-1eff-44b9-bc60-08dcc810514e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: KiDGm/Jku8Q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oaP79aJamAPNcbm2scDa7wL3EK1mDfstwvl7Ae9j8vTL29HWqwJGwc778y84QpwAZijerFjbs7sWqwEGU+uAPZ3j1CCK38cuVOO9xD6YN/TxxlvIeiQy0grdYOGz8skvPmtJ9FzrLakIY4hzqwT4SE0gYqCiQy3QLq/uxFDXGSHbn8y4IZqPdLTvdEHr0oOAaFWAevnT+IHwI382aV6bQtJuH+jGSUpnmjedJ8WVaE605FIVN3Fu51F2l8WXt6SXPcqor5Nk1UvlP2r3q3I+FHQfkbyYIU+Vj+kyCUlymh3CZf+Gv5BCfxqSMARklQ0pUEpXZs6gXXZN/v2sjaZA2cvOEzJQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DTCtNr1RhYviZsXhPxr3sAcahy5YTkNMGJl3YWOKO5Y6V2OekxHPlP2cADGq8gzbpeDKUfcPXeMWpaIrdwWqXbkaE17NLgyeAuoL3FyT9oeW3hP63EW7Er4lYOky4U8OOLag/SJFi2PTXnqwNdUvHZSyjgNoc2G251EAYqdFgj5yQXRK3Djp3eDa/0xxfr0ws5GFXwQa68O61ADeL/uc8/Lu9QunLK9pkCdGmaRequXoZbtMArQu5yMbJYcBkKsbje2NU2auu4nDT8e0n+6CKDvnrLUdbGLC8SOBwe/WdkZYwTpLH16WHKqEKCCvh9C9Wf4YJtsf8/BHOTKGV2006IfmjR7tBghhXHUaLgS+ksnc4h/TrvH0hbVw8rg+ZHoqYTHYyXVLwNAIqAi4OIo6YJ9Sk+ZH/Mj3in+Fb3z4bNFhWXqg03IaGf8oGtaLr7oz82XOBMqaZdZH7/kWqULat9IR2mWfqZ3OhG44QWrCHuWb9K/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7ZQQy1UVYsUhlmBAT5W+6EG7Fs1x4PjbVnFC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4954fa23-1eff-44b9-bc60-08dcc810514e X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:39.1250 (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: miH1qAsaXvtpVzD9JrrOF2V+7Od6XqCt1bi5zMeIkuoe4OI/BZD1f+iKNvMiOvpN85bU+AQaNwVth6BxMcyiSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7720 This adds the encryption flag to the response returned by the get_bcast_qos method. --- profiles/audio/transport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index 300145794..e8915490d 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -1174,6 +1174,8 @@ static gboolean get_bcast_qos(const GDBusPropertyTable *property, &bap->qos.bcast.packing); dict_append_entry(&dict, "Framing", DBUS_TYPE_BYTE, &bap->qos.bcast.framing); + dict_append_entry(&dict, "Encryption", DBUS_TYPE_BYTE, + &bap->qos.bcast.encryption); if (bap->qos.bcast.bcode) dict_append_array(&dict, "BCode", DBUS_TYPE_BYTE, &bap->qos.bcast.bcode->iov_base, From patchwork Thu Aug 29 09:52:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782917 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2080.outbound.protection.outlook.com [40.107.105.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE78318E348 for ; Thu, 29 Aug 2024 09:52:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925167; cv=fail; b=gBDHjenWFGkORha/EkJ8tVjLz+lFfnqSwTVvyhDEvVfJwWQwTubKwYLmZwuVOxC0HlJtA022ZJ7l1SliL5B06rDCqd86CCMPoMPqwwmyXxeW+gJRNVqZHh2NAV0PR9Te00S16iq1TXa0kOLEm06btZGmS9MMjflBZopj7LYLua8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925167; c=relaxed/simple; bh=uDoV3UxbmKJ24oPrtPlQ/LgwVW9UTzyTzVKKXKf3OU8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=TILWWwj03pt82FbHkz25W6M1ddsFThyiM1t5iCyd7oKmlEqny/IjaVgdIxHFyBZUr0RJSWGxJyRgZuaK2sE/MRZ2lIY+W3C5fpSFVXKoLPk7QjvNwOUcdQzmprIhIS3yOBchaOAJ7cOTViXQfNDzD/ZI+xoDM8dqn1iJVOmE0mk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=S4f+I1EL; arc=fail smtp.client-ip=40.107.105.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="S4f+I1EL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=g6AlCdP04D8VT3Sv1lX9uEmkvh4D+evyECDNZSh9z9s0/jYD+ynw7GPXyW2bpfgPADpBiVOppZvv9gmMePJE4n2MhRVfz2Vz3hylqx/21uQ0C00udVqW+c//kE5Oaw4C1hKq9KES5mCud3AdjwanmFgs2d90HNNKtdJDlPg5Qktlpaq+StPPdAZhAv5ntnEv4HrMMMJ0V0WB8sRrnlioyNfDjZuFSBD8QoqiCvS0TKnoaqKypu6sP3nlctnLcW+JAfhQ6r9OAV6reo1DYbiuEdalKpQIlHnY4jkNrqaqcv7Q+bia1bg2cWmflP3yJle0qUzcl44Wwx3e8cLsioflWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=6ZZ2UXzBo/7XJ/ot4xgn/i9tbgjwaAs4qp+CnDTOzdg=; b=D4APpy/C8bsjd54z6tuoUXjYahm957PBS0kEp1Ea251nsz2kskKvqAnQtWKkIBIEQKuFk+8EGxGeipTh/ZyYu/Y+Rz0rOMjehkBPrJKPma2V6CxOLahAAbbbdC1qVxFj56IbnBvhx4wpvWfwO+mMYrjFhuzHQA8ueycEYaBNDu70rQR03AVJnkFLIhv9PgDIDKmMr06wFvDSBiKT2/hi+oJ9LiOKOvMchIHacJ3AUx2ERJWrxXZHNBQQGxhh0ccrxQ1cfgBvvu/ZbaKsikq+JONCZSXj9s7EtdDRcTaTpx/lm5xIR4dHYNaHCq/iL2eNAehOO34x2TFVMdsq7cV87Q== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ZZ2UXzBo/7XJ/ot4xgn/i9tbgjwaAs4qp+CnDTOzdg=; b=S4f+I1ELdQckVvfBUHh2f05S8qLhn/vxwhsmsuWZwMRN3vpI+jMQq8Xe5DjCGiahqCK/FZ39uxVd5VzN5NgJ9pZBVOXA6O/3Wi1d6GNwRKiBsr6+4LW+OrPUfnGyalH24059h73hVWfAzcUTJzIcxKKuSE5U4Bl1dS588sK4cw8l/Jy6vF24DM1vic6DuqQVAMGlz7jbvg9ONb4kqGKshBpjP5lvW77tz5ZvZpityhq4/yyqgiHUKr+nWYLBR+/XCN3oLoIKB1qPCxFaGsSWM9fzJJUnbt6lxAIlHR1k6Lk+Ws8/YrWn4EbFlmK3d5BFPSbQ2OHLKsS636QVPrey+Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by AS8PR04MB7720.eurprd04.prod.outlook.com (2603:10a6:20b:299::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Thu, 29 Aug 2024 09:52:41 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:41 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 3/8] gdbus: Add g_dbus_proxy_set_property_dict Date: Thu, 29 Aug 2024 12:52:01 +0300 Message-Id: <20240829095206.91150-4-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|AS8PR04MB7720:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a2a357f-0f71-4f6d-a1bf-08dcc8105272 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: JrZbcho6sxgEhHtRfGbnEnA5qlxkvGVN3ma9e19/qckoZNgJHd2/NEccesRbgS7p1t7fNoWxwdxAK8mXbAsLMjKg0gbI0IWse9olrk0CaYSuDg9ccsco7/WBkxCXvtdgePGyz96tx3oIkHCLHpC0+HRWCNmDPxDDesoADCRA3ko4JIUio9sgRABZRf8iT9bDRf3h8fas0wVwuqUBWrr7zwkI+DoGoy2vhF3bKs72cXfAF8uoCcSisBlxCRdJlKbEU9uJOSDCMFlp8pt90dlp7HmuHjs2iPirSqELg2/EwS2GyFf0H11u7a1kD2Qax08J6LnfIVfIQKLxmSDyIUejg6/kthfhfTw7NlZMigPvwT4j97v4djdulVTHiiDj6zX0wg/7Lho1iX8BIk3BugDfX9EIygIwRkPT3UxzJ4j2m41mztOLFrkSO45uTPnpbVnY7SC0UjwB9UhWOS6QNH/hdBU30ewykqmH4UCFgS3k385St0obVxVDvb8uWY/0cNyc+D7I7YWGez8N1/dVhxdj71buZMGOxp7RMXn9YAHtoKQefbIqCaCAkFU2oaXS02x8ZAVTzgpUjW1pgnnVpmSzioG8pAffnDX95ZP2cXQbc2N0EriyRw21fO5FpeCAetuh9m1ML03xO/nxqegf9Myt2MJdNv5Ah5t0cFAJ92sd9i0+3Cq8ZiRzR91hZIBgJZsPZxdSETNdVforKmadsd6vgr2QeC0mCGAKaDDTsEwsJlj/L8MC0h9RatMsB+nu0uBuEs+NMiek+hFfN4fkC+b5QMPh6GLtuk9ZrL80lOAXWhOvZfUOD6FfWsH4F1wigmYBnEPZN2S4l9ADAXrKJOPxcY1u/DW+VBSpCRuaohWPZgy5yi1VdbI10WGlkCA8l0A2yX9mfRs3vvpeP88Ccfz2T7173dhI/0+h9X4GyVDCRIB2rOb0GzERWfcVm9w1lkWTpsmMzDTo/OCYf4kuZ4Lc/X0lUWrwXXlFYMXwFUc17SSjJAHx+VNxs1LORhdjbgMT9Ln+vhvp2tDmC3MJHq1qKLb3NGd3UXid9Yic1FABFzC0fjFQ5u8fEVEVzIJ50FA3wz38x95Y8do4NpUFA2LhVCQY1e468jCKjvf10x/q7dsX3BXgDaNLal9GxySweyOcP7V76UjPPK7XX97MN3lbOAvUSgui5jpEPQ+kyQuy0v6kCHw9yrDnDJsZ9e9FDxkHJDAy+BcP1dpsuS6LeyhUZnB6fPaSauUQTLmWHA5nmoMr9rBxa7IwXfZ+mvDcfrwL/NtP9SbkFJjhiZH9uXOf15CiTHdZXVK+P/nEtj3BanuFexHLbMOneEmp/oc+jrYwFuWfJHTeheF6WMv4yVBOU7bgs8+xriBY62LPkS+XYSiNTZ9DS+52HqISe6mkJh3d1IdJUYPSMygaxhB1HjGgVg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: i2+g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j7JQWwza2+xKpkkD1S0s3A5p1dlTVtkDZkZWIVm69pw2V0f5CUl6Y7z4CoM0dtvF9jMRKbZ0dEOD4QfTJ0u0BSHXhDcv0LWnsqaGxnhjAuonaKVxM5JPW4BD6ejkVmFI/9zigI0mRaWzub9EEVPaiKDAQTlYQ6TKuqlyvUIQiObPYOcR55u4Ij7NwpcG3Zyj29JptUf9o4saTRxcoVN8dMDrYBjOYeNbMrO+OnxWTZ0HdwkctkJUt83lUL8Xq4Fw6TAEpPFjwo4HbxUUN/7GDNYxqhTyPsBAYBXDU11XBgmMxzWQAuRmny9ZDZkF2jGhQXswBRKcnotGeUXJEX+MoVXugdt3CH5mRABoQWpRNCCTW+Yj0HjpV2wMEaUf6isSPgVp8xu7B+cW/SKXKh7yvPsonf22mZOgQFPmLAH2vyOcRs27EJ63+aaUEyLgpRNPFhtLMjOi1rXrGe+tVXusWvn/m9hs9EMBFsFw7ERLBFBEg6cDAzUuAo3ULlLfaFXQaXka6HXK0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a2a357f-0f71-4f6d-a1bf-08dcc8105272 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:40.9803 (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: cvyqa7gE05Ltlk9Nz0M9iAv98d5guXPvVb7oMuv916kJ6zrLJJxB/4QBjWAupSnOigFmQ2Xh/xnoGdU9VXD4nw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7720 This adds a new gdbus function to allow for the setting of a dictionary-type property (a{sv}). It receives the name of the property, the name of the first entry to be set from the dictionary, it's type and value, followed by the second pair of entry_name, type, value, and so on, marking the end of the entries with NULL. Additionally, if the type is an array, the type of the array and it's length must also be proviedd. These values are passed as a dict entry, to the set method associated with the property. There, it must be parsed and the appropriate entry updated. Example of usage: g_dbus_proxy_set_property_dict(proxy, "dict_property_name", cb, user_data, NULL, "entry_1", DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, value_1_len, value_1, "entry_2", DBUS_TYPE_BYTE, value_2, NULL) --- gdbus/client.c | 115 +++++++++++++++++++++++++++++++++++++++++++++++++ gdbus/gdbus.h | 6 +++ 2 files changed, 121 insertions(+) diff --git a/gdbus/client.c b/gdbus/client.c index 3b7faa4e4..deeb01dab 100644 --- a/gdbus/client.c +++ b/gdbus/client.c @@ -4,6 +4,7 @@ * D-Bus helper library * * Copyright (C) 2004-2011 Marcel Holtmann + * Copyright 2024 NXP * * */ @@ -15,6 +16,7 @@ #define _GNU_SOURCE #include #include +#include #include #include @@ -208,6 +210,44 @@ void g_dbus_dict_append_array(DBusMessageIter *dict, n_elements); } +static void append_dict_variant(DBusMessageIter *iter, char *entry, int type, + void *val, ...) +{ + DBusMessageIter variant, dict; + va_list args; + int array_type, size; + + dbus_message_iter_open_container(iter, DBUS_TYPE_VARIANT, + DBUS_TYPE_ARRAY_AS_STRING + DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING + DBUS_TYPE_STRING_AS_STRING + DBUS_TYPE_VARIANT_AS_STRING + DBUS_DICT_ENTRY_END_CHAR_AS_STRING, + &variant); + + dbus_message_iter_open_container(&variant, DBUS_TYPE_ARRAY, + DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING + DBUS_TYPE_STRING_AS_STRING + DBUS_TYPE_VARIANT_AS_STRING + DBUS_DICT_ENTRY_END_CHAR_AS_STRING, + &dict); + + va_start(args, val); + + if (type == DBUS_TYPE_ARRAY) { + array_type = va_arg(args, int); + size = va_arg(args, int); + g_dbus_dict_append_array(&dict, entry, array_type, val, size); + } else + g_dbus_dict_append_entry(&dict, entry, type, val); + + va_end(args); + + dbus_message_iter_close_container(&variant, &dict); + + dbus_message_iter_close_container(iter, &variant); +} + static void iter_append_iter(DBusMessageIter *base, DBusMessageIter *iter) { int type; @@ -885,6 +925,81 @@ gboolean g_dbus_proxy_set_property_basic(GDBusProxy *proxy, return TRUE; } +gboolean g_dbus_proxy_set_property_dict(GDBusProxy *proxy, + const char *name, GDBusResultFunction function, + void *user_data, GDBusDestroyFunction destroy, + char *entry, ...) +{ + struct set_property_data *data; + GDBusClient *client; + DBusMessage *msg; + DBusMessageIter iter; + DBusPendingCall *call; + va_list args; + int type, array_type, size; + void *value; + + if (proxy == NULL || name == NULL) + return FALSE; + + client = proxy->client; + if (client == NULL) + return FALSE; + + data = g_try_new0(struct set_property_data, 1); + if (data == NULL) + return FALSE; + + data->function = function; + data->user_data = user_data; + data->destroy = destroy; + + msg = dbus_message_new_method_call(client->service_name, + proxy->obj_path, DBUS_INTERFACE_PROPERTIES, "Set"); + if (msg == NULL) { + g_free(data); + return FALSE; + } + + dbus_message_iter_init_append(msg, &iter); + dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, + &proxy->interface); + dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &name); + + va_start(args, entry); + + while (entry != NULL) { + type = va_arg(args, int); + if (type == DBUS_TYPE_ARRAY) { + array_type = va_arg(args, int); + size = va_arg(args, int); + value = va_arg(args, void *); + append_dict_variant(&iter, entry, type, &value, + array_type, size); + } else { + value = va_arg(args, void *); + append_dict_variant(&iter, entry, type, &value); + } + entry = va_arg(args, char *); + } + + va_end(args); + + if (g_dbus_send_message_with_reply(client->dbus_conn, msg, + &call, -1) == FALSE) { + dbus_message_unref(msg); + g_free(data); + return FALSE; + } + + dbus_pending_call_set_notify(call, set_property_reply, data, g_free); + dbus_pending_call_unref(call); + + dbus_message_unref(msg); + + return TRUE; +} + gboolean g_dbus_proxy_set_property_array(GDBusProxy *proxy, const char *name, int type, const void *value, size_t size, GDBusResultFunction function, diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 6fe09b743..d7be17661 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -4,6 +4,7 @@ * D-Bus helper library * * Copyright (C) 2004-2011 Marcel Holtmann + * Copyright 2024 NXP * * */ @@ -362,6 +363,11 @@ gboolean g_dbus_proxy_set_property_basic(GDBusProxy *proxy, GDBusResultFunction function, void *user_data, GDBusDestroyFunction destroy); +gboolean g_dbus_proxy_set_property_dict(GDBusProxy *proxy, + const char *name, GDBusResultFunction function, + void *user_data, GDBusDestroyFunction destroy, + char *entry, ...); + gboolean g_dbus_proxy_set_property_array(GDBusProxy *proxy, const char *name, int type, const void *value, size_t size, GDBusResultFunction function, From patchwork Thu Aug 29 09:52:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782919 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2053.outbound.protection.outlook.com [40.107.105.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8105718E364 for ; Thu, 29 Aug 2024 09:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925171; cv=fail; b=LkENkrAZm/8Cz/efDozKptBqKE5s5usegNH+tvOLNigIr2Yr5R1wxtvhVKVoNaErJV1GAVdIdX4Mx0H2MO/JVGrLWdKVp3FUnSgGeqEI+QQJDpuboJfhX5nI0hTmsfYKlzae86wZjtjLyqeHGYEw1vzEAHdN6kN21DkSqoYRdVs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925171; c=relaxed/simple; bh=Pzu+gROpzRbssfrGnlhWMqASjJFJFEjMo3gTgOVB/ok=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=uH5YBB+FBD3LSLfIIOO7dsPkW++SwkUVSae0LloG/axa4+MMbas0VQGNvfsTXb1Iuw4EtLIfoYgjKTVqPR0bRiDuPaj4uYcaV5SwsZgQcAvO6yVCqYvXij4dGAU8wxGpkcEJDlyzmlCQFVy8JCkgCflqsT0E8gtkP4MxUZ4KI3o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=UM2Zp+DN; arc=fail smtp.client-ip=40.107.105.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="UM2Zp+DN" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AHgKtm8kcKZPO6//VT92W/oYY3QaDNzysunTIYzFR5HShzmkelPSVNEjnTLLd5gwyyRGntfl7RuR8h+1afpfVlNNK6lBFTZNAOibpLXTkX+3swxLRFtUsJL+DtZBEdw5WA1NVDrRgU7tb+R6sEfRE9NgfSOHV9bebOX5eZ58387k1Dv77+nIJI7lMLNoDf5BOkgEYyb5YJEgnFuKxWcPrTXBvOu3YQ/Qoarnmkwz/jBy3jwZ6xoez57WiPZIOhB48Evob2aQipa0vQKywkfqD1qhW2phNcSSN/uYHop60xEFSnIR/24tFwZ+1UL1a/nKuk/DseuTCN9SRfMrrRS/5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=f/NjdNHeOpBYHMjUGREWAFxeLGDEAPTXZnS8eJbUT9Q=; b=dvlRBcZkAoS2SOyE+yiYtFi7jPTqCI4Y38uhar1xm2OSdZuAwKLaXZxGzvfNLtOW/PcsWRvJT4A11DrsLO75FCQ/vo6x0iyKObNI6yTkBtF3da25RaW5nzRQKAyqMsJu58V2HR11k2RmkzhKUcJXyUvQC+n/eJcHX4lp+12Fqdd+gtYQo68nc6ircRS3LYwEcjbM4sAg28CweinBivv2ryQaMx3fBrpH/BkD66pixDr2E9hQyBS7ZkrhamY2EJWSsVOrtMSpvKAanHISFBBNbvcsl0d/drOy9q7ako7P9Zo+0wMRi0SKajxiIMtGej3XK8RaVZ8zOmDKYy0vTBMOsg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f/NjdNHeOpBYHMjUGREWAFxeLGDEAPTXZnS8eJbUT9Q=; b=UM2Zp+DNJ0cxvpExWb71VJWDk52bBucw7NuV9Xy9aSFAnr8xSALnPle9owYKWm2zigeF99TJs9QKXSFdts++1CdYDp7V1eE+KYbJ+sT95+F0KyCGvBYnzG0SJzBbtLIp3HScsx8dX1ZvpLiSNht7g04ro6oeC0ZxA+KYZGhDfnyvLlb3LziC/EnQ8MBnoP6eQmVFviOn/L7MdU9XMup9eYLnjTonJMp1UArQuxvSI/KsE77gO8Gup2EuAxWlbqOP7EFE8elAjGygNsFASxqjSSxNfW0DSEyIXhk7Ajt/ulvOgd6TKVw1Fu11N/z7HUZttX1E6SbitqYUjtYkB9qX4A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by AS8PR04MB7720.eurprd04.prod.outlook.com (2603:10a6:20b:299::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Thu, 29 Aug 2024 09:52:42 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:42 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 4/8] doc/media: Make QoS property readwrite Date: Thu, 29 Aug 2024 12:52:02 +0300 Message-Id: <20240829095206.91150-5-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|AS8PR04MB7720:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e079d39-29f9-46d9-fc81-08dcc810536f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: 0+1xx83RzUOqXp4DLr5dtjsU4jFdrDzMA9uh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Rn9tebgE9CDpZIITbVZ6xe/x5NwydS+wYEcSshVX4rnYF7W9MgaItSrRw5AeU/lxwO87o27qxM8/ZLqgp8lsFy7IGMnUygWTuM0TLlGIfa4w4nAn9YSMgLGvTz+wuxFbw7suVkVCXvP6e0HyjgtxMDb0TJDTUB+18qvgLyuo9V29rw+zaK9F9LhcPpjJjX8WFQ0Q+E24oGkA/KSGg+M33TumEuLx0V5uaQZUE+2PXL29NrtEXw+jty89sndHW3yWQ8Nh09q4d7Q4+bm/RkgTGcM9nWLpAfBcW/YinxI9EhLhYA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ptx2Jb3pCURSEGSE+Z+jUQbki5iCiB6ghCZNOt+qZziRaWGsZVmVt6LYdd++DKyo6UpZ0p7FEqViG25+dV9UG5UVahD4PZeD9hmE6+VKcFYlKFn8xQaYLZAMb2xJPkoOoX7WGsh3hUo1nCByM/Lwqp2zZEne/jdkvPLwQyS6oQVCK8eIF7Oz2gyroqcryjD+ZRtMAx3RU7s0ypcY+UuUHJPLhYfj4uvXt+0I04h5/5h0yHWS0TaSaEvMXW4PotAjEKtuX42AjF2F1DTV+dACI90gh+hiWbtRh19HQ7dqfMZN6HeLSjFApV+EOJtnryqm3tVF3j1AqDNzfZQkVZYv/uSL1hBh9y+v5ix9rdWU2JTc0ZtqjqpHQDSUoCqePo8DvNIIFcacoc2fAOr/SFwWWPopwm5PpzeDtx7HeRLoW4CMvjAzrs1/pzzyEE9ICJtP2ti9cQrr6pDqn04NolSjvox8gbpnnPnL1XId9O83fYEqLLTIraaTAGi6ivOA3aYrlCoJ3mfeG2L/RT3Gpu2JsSlepTN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Org: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e079d39-29f9-46d9-fc81-08dcc810536f X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:42.7512 (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: oxCEnIxpEENYEhnOGvwepFIgnU+yC8F+XJBu8ol2NG+k7uGf/v+2/imR+yq7QdFJL7ggq64mNoVMRklLnOU+aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7720 Update the QoS property to allow for write, so that fields such as BCode can be updated. --- doc/org.bluez.MediaTransport.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/org.bluez.MediaTransport.rst b/doc/org.bluez.MediaTransport.rst index b53c0cd26..4d998b2a8 100644 --- a/doc/org.bluez.MediaTransport.rst +++ b/doc/org.bluez.MediaTransport.rst @@ -149,8 +149,8 @@ array{object} Links [readonly, optional, ISO only, experimental] Linked transport objects which the transport is associated with. -dict QoS [readonly, optional, ISO only, experimental] -````````````````````````````````````````````````````` +dict QoS [readwrite, optional, ISO only, experimental] +`````````````````````````````````````````````````````` Only present when QoS is configured. From patchwork Thu Aug 29 09:52:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782918 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010012.outbound.protection.outlook.com [52.101.69.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52A9E18E028 for ; Thu, 29 Aug 2024 09:52:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.12 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925170; cv=fail; b=kAjtUkIlvs+FhVs/TbqfL0Eqa0wUVAmG9tN5LQ0b+Y6rGMO0YMGR+5acCqAfvfhb1RWxJbIpZ5csY7OitSPBMuW1qcPnZUgjhpa1tja6Vi3MgjT2YJUCgRcSHVbIjuM4K1c0JH0Stj5ipYYwDpy2TN1WqIxWKasBJ8attTehucA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925170; c=relaxed/simple; bh=kVnrkynjB0RwXkt9+ekJSFGmiJTCkqkdP8ubjuKdzzg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=C6P53MoGp1ASrDxndLRb6ngiGmg+wv44xVazNB1asdDzHDujGP8XF5v3xLaRxxmRrgXbBFxWyprRReFUcbgGrMjFqxQjlUKuYgjLcdenA9Oh6h8sjbIBC5TBlKrNF4RwbeeVagBNHqFioqbAR9l2fejtXisoHIrdbS71UtQIJ+A= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=CBVe3DP6; arc=fail smtp.client-ip=52.101.69.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="CBVe3DP6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EhK+GK4Z0FIzCy7AXFX4i1pzeKzu8lbmiudCRbrPE4P2EP+E+ng8iB+fLDo/nK/L7Q0naLI1YKK8cPG7JuNb7EDemGMWxxQjZmbkbasxGeZxP1VhbxSp0as3WKYU479+upqbCNzV+JCl/M9aN3G0EXinYCQcaxrPi5DfAXOrCiuVUS6vPwErwgUx5GWhadUcdIj8CzVgETFKI7/7MWhQgnkuWuTCqlBVqyhLZeewPGOOzlu/kBBOMSwaOjBFKCowf7NYKkL98R2SvNFTOlmDtlFz5+ZV/NqSHU+XEbE0sCynbfh2k0McdBtzsIK2YGeP4Q6Aounp4yG8gQSgbQ87fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=8czvwetVNcxQZXV0c0IdS3aq7DZRQ1v48PiQCmkttvc=; b=nIMXJTPIoYcB4eyb9jRzAs6td/qXhcFBBI1+Ue+d5t7TdJEYBmF9pxJ/SE3y+KhutJ5iVDs253yfihlLHBjT9T2kaC8DqEk5NHrJSv356+6v6dQ5ymTe7zVKwPgZenxfwFqI6blagMsjy9hAWQWGAvDTgu6vP5XJp1viLqKBpUqqQeEWob9p2D+CWaVa5esL+20GwLcBRvqhyX7VmC+ttOrxxkr25b4lNKzPbVYt3/Y0Ixn/oyw1DGRhyH7vF7APzk4rtwpmfPfqLsudLBAY2hDhLIK7SJZlNXX2H6ItJZ2e7y4ahT+dvYvG1k37wUenQi6hEAjMbAxNxLKkme8WSA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8czvwetVNcxQZXV0c0IdS3aq7DZRQ1v48PiQCmkttvc=; b=CBVe3DP6u5YET1At7gPnzk3R/qQ6VPGAD+6ALR23nSCBO3EkBUeSs4R5NUupoJjDt6zjvq4r0A+aNawPXSabCaNdygX6nHToqlk5u+drXSd+6lQ/ULNxDYlNqCddERb9PRW/g1SIw7rsvqNDeZs2TlbjB8iXpc7nMHATzFtU+MbgbUsYqGJGEVyAiKovXh8PjpuyAQ3ZeW8km6cG/mu+ZJMlStf/zW+OXWdsIZ7lpcn2a+QELDEdxiJ7cDU9rqQFdxXgnkAxSDzsw0XIBZ/Qdo6VxlEzyn0HSGEPLNh9CofBsIEfknSa4Ff94OHpwCUlhQdIeGyCPUM4XqdIeprkOg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by PAXPR04MB8733.eurprd04.prod.outlook.com (2603:10a6:102:21d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.27; Thu, 29 Aug 2024 09:52:45 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:44 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 5/8] transport: Add set_bcast_qos method Date: Thu, 29 Aug 2024 12:52:03 +0300 Message-Id: <20240829095206.91150-6-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|PAXPR04MB8733:EE_ X-MS-Office365-Filtering-Correlation-Id: 43f37e0d-ac00-4ecc-d241-08dcc8105494 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: +OT9XoVNrXSp2URYRk5xyX5uHtNazCX/Vq7sRPyoXNK6Ay+gERhIlQZoudw/a27czYJ4ylNgXm06eMwverJovQDuEzpMm2miSYHlx4e3jAEKRMFrdk33b1MHCdEWkeus7pLqnTW4DV/Q7VLWqtg7HFGxXGiH0gJdjFFONAolgJI7vdPqHe7BshzGlx67nG7f1EyfxuQ6YFDvS0MxAF+2Y0Q9DP8/QtuEYVbzEbFhXHVob6N/2pOGc/wdRerGc7yC3gt4HKTvPGt0xM4AEzGTHx42/xRcibrJZBaKCRHtF21RtnfoOcC88VFdj5d7qnlp+/CKgnaAby8NK+mikfyr5qqRjIF2av9v49odMk3F/fNE5OQZGwKnIXzUGH7wT9RFmGbIUSEdgi4LhdFxvULdV0teRK6RjUJMWs8BaJ4kAncSOva7ASb8r54nI5RK+XaRfIiplnNp67ACpNbhgfLbjH4Y9tGo9k4il/n5eR9g1UWzwLpcdtNL/wLjEE1lPwzWaYnHus8ZJf7EJRRikbvKsnBp6/tgBfQXKclN/bMhbxG5SZxHw7kH17pkZO/IUrMuGAgXK7DCL8JqSEX+Uk6Q6ozakhQy8bzTc94PziDlMbO1IF279BG9xJ5RJEdhahmiujH2JbmjXu07K6Qv6o9wer9HNStWLeOtKAM79pKIKjSQSXTYPhZLIq7hEBlkwTaUr+kTwOS/7J/392P3SYP18ra3mCz2WcRkDEZ6wqP8XjhMGkmCPGbeAo8q30L4tNg5FaG52YdcpJnjtGYGXI+6xwWKS/O4klewaOaatSpmPT0wZdyJTyorzfzFToWjwxysM2fNLsgNTw2xE8azrbDJUZ+/KUXJ9sAOZ8ADAUPytQzAHSKQ3ZfI4fuPGBa7i3QhEcrdE33WcYsBVOgXEMTcAlomGkLXbXmAoYiNvvIGDB6n+p+stQSB8Ar+hFxxXjAebnWIgw7qXlYu5JxCpDxrGj+Uocg5nl59nElXSBHEn9dEXs+4pWsOdBL3gERKmpJ2LF0yMA+vIc4QzHmYV4CIS4RtTymf7LV1spc8BT4NdoXqr4oRfbBkSWU6gVLNLWWbYCPexkreAVIIaCVgBEsdtSii5K7Vf8rh3D38H6tB2blqmwr7miAVH9MzbWCX1EwYIXWjVQPKxGqHpJmqmKGKT8owmfMvauOPGKtCJHnIMj9cVOwIk01RLKZd1oncPa5uui/LYjLGCESIx8PeoxsTdqbe/G/T2yjTFuMezlA+yGYb7P/fF7FI9Fv/wuzyphnbDyaM80sO63k+BP0gzexn6U43vS+1YdbBzyU6GkPm7g1+J86TJRvJlEDPgr6QEroYXHUtAVLWPrmbnkJEYOcsbHYT7FCBZXKm0ck2Et/Xv/GtxgPWhjEvnwpSlrDNZ/y4FYx+6y+agZnI2daDa/9rJw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: spyTg63PWk9nor6hR8wT9+Opz81wn7OpeypHtv4ya5nguT8qtZf/zDe79QTO/Sp7F04otjS0uyClf5smpxq7kJZHvOaHPlj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U+4ZY7bZKZs5j3Qf3qQoz2TgdNmM58Gqz/CVP+mDVtU8y3qp2tQX8PFKCq0+iXjf3A4o8AQa14U/+NTmuY4Ff03CkRJEZnalh/fz/zDibozs4QVcA/LC4jSG7bTm9FwXDBVkNYZElkWJCTDWlwz1qi3xaPHOC4wNnOybLLxGA2pU3LRG4yXcWN4lIpZb2lMcsCQnkcb9s7WwEOAw3lcna44R8M2b+cICDFnuCpaYmndMuWjMDRh085vG2KIba6yjqCT6PvnKxjGE145iGRDk66Has3A8XWoR8L2XSXqwOcTrMNVuLYXe24Q60oVAQKYZIju11QlAJUQxzZKi2DjeQA7yUs1YQvaSjiUx99N5FWpWdpKRVltNDtrJ+KmOitz/2qlc/XHeeVRV7Y6xx0GZw2isnL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43f37e0d-ac00-4ecc-d241-08dcc8105494 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:44.5801 (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: 5y8Nfiz5hyWlUdf8cGFDzAv8o/P25FeE5vmKNWjntG4mWe+9pBIr9Q7RchluKWGshwS1aWylNMgHnm4RE99Xmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8733 This adds a set method for the QoS property of bcast transports. This is needed so that applications like bluetoothctl are able to modify the QoS (for example, for setting the broadcast code). --- profiles/audio/transport.c | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index e8915490d..c4b6ce7e3 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -5,7 +5,7 @@ * * Copyright (C) 2006-2007 Nokia Corporation * Copyright (C) 2004-2009 Marcel Holtmann - * Copyright 2023 NXP + * Copyright 2023-2024 NXP * * */ @@ -1208,13 +1208,46 @@ static gboolean qos_bcast_exists(const GDBusPropertyTable *property, void *data) return bap->qos.bcast.io_qos.phy != 0x00; } +static void set_bcast_qos(const GDBusPropertyTable *property, + DBusMessageIter *dict, GDBusPendingPropertySet id, + void *data) +{ + DBusMessageIter array, entry, value; + struct media_transport *transport = data; + struct bap_transport *bap = transport->data; + struct bt_bap_qos *bap_qos = bt_bap_stream_get_qos(bap->stream); + char *key; + + dbus_message_iter_recurse(dict, &array); + + dbus_message_iter_recurse(&array, &entry); + dbus_message_iter_get_basic(&entry, &key); + + dbus_message_iter_next(&entry); + dbus_message_iter_recurse(&entry, &value); + + if (!strcasecmp(key, "BCode")) { + uint8_t *val; + int len; + DBusMessageIter array; + + dbus_message_iter_recurse(&value, &array); + dbus_message_iter_get_fixed_array(&array, &val, &len); + + bap_qos->bcast.bcode = util_iov_new(val, len); + } + + bt_bap_stream_qos(bap->stream, bap_qos, NULL, NULL); + g_dbus_pending_property_success(id); +} + static const GDBusPropertyTable transport_bap_bc_properties[] = { { "Device", "o", get_device }, { "UUID", "s", get_uuid }, { "Codec", "y", get_codec }, { "Configuration", "ay", get_configuration }, { "State", "s", get_state }, - { "QoS", "a{sv}", get_bcast_qos, NULL, qos_bcast_exists }, + { "QoS", "a{sv}", get_bcast_qos, set_bcast_qos, qos_bcast_exists }, { "Endpoint", "o", get_endpoint, NULL, endpoint_exists }, { "Location", "u", get_location }, { "Metadata", "ay", get_metadata }, From patchwork Thu Aug 29 09:52:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782920 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010035.outbound.protection.outlook.com [52.101.69.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8100418E35E for ; Thu, 29 Aug 2024 09:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.35 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925171; cv=fail; b=sPGpjOf0n917b7uYyTKfRZX7zSRCCmeEJhGwqmbOxegb7FjdmXl/a2aoOx9RohjkvqcK1GfyI509PutHMcyQKWgGb2jQzHI8HHnMXdvEwVZtPenL1oDepT4XoMRC2uJohTMygNAualnolJNn3UWCV3BilS0qJvdfGl0SRUGUuA8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925171; c=relaxed/simple; bh=cBh8JA3exI/pu4B6FF0fELAZEPkTKtmCGbNWIFp9sWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PQxZ8/emnH4GEj9Z3+gh1ciDT3OwYAc3TqRyDDBgLM+b58ZfvrYUyaGxo+WLEFGSNcKE0qSbpNJd5esFQvlBGYI3KwWp/2l9m3vAr7e7Cgg226V4Bl8qIWBHz6GOjmnHD30FcC8zATMFEDFOHscq8D0zs4CYhjDhbbIaINewo9M= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=R4oxyeEd; arc=fail smtp.client-ip=52.101.69.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="R4oxyeEd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Hhuirpbts08Hpqk9BDBW1wqAYxd9bkZnKtt70QbOC6zYSs+Ym3LkBaZ54KMD3KwoE82mbu8tOQHVHtF80j5tFMGZR8e/FMTHCGVJcHnCsj2k0femm0t/uKXTzwFSsJ9LgmK230iKdXzBNpqwtg9wChvd1G1XQ7PmXE1pzhxWvVgGwLYdtVVQKv+cfy9YIFxx3j520Tv/ssvWWW4AlEO/tWcWm/VbvCvu0BD7yQaNR1R/9aIf7bxwaDT0pOTVtnrjXCc59XAwv0QuKxyU/zXDP4bwQdnU4tw4r1Lobo1QsAT0IRsOdlvxwL32FtZWTku+IwlCidHTiycpVg5xpVAgMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=S0OFVizNoRRLM7UYnGeILsQoFo2SDruFPXAMdnn6wNk=; b=kb/o27A7/078t5EkaTtgflJ7DlVGx+rgtzGTt8ZgN2uNd/voTCK9PkFJu9DNBYolUBhVKOtBj1x0ZdZtz5Pcq9tieOhK0Maj8kHjVuHsNzokOz0eiVa9kJNzTfw4+wvcgTmqnGRgL+WWr35c7IHOZXEXUgMr59r6iHY8zBbw7HuoFY74r5Uido3vRCStKqTCw5HEo+ym5Auu3bFyr064uKqndryDDQ5vqSpXeJUHeCbLGJgOjMK30TIZQexZ9Y3ONhuxqea0e6QKU5vRd4NJ4zAb+Ll9PCRGUTGoEQvjsgE48t/G1YHMnQMrg1ramihzWymgOggKYImnIVvO42VdJg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S0OFVizNoRRLM7UYnGeILsQoFo2SDruFPXAMdnn6wNk=; b=R4oxyeEd34EmDWJ67ddaEUro8Jx0/ihJBjWhvwtK0JqiouOH2EHjSOjY0biPKA78H/HeukhiAZg/k8UVuP59U6fpIVw9NymExH4TrkyOAvnFpRQgHVuIoy41/DWpWrUzd00AdvvDm18Q4B6CQkksFcrb3nyb/YoLDJs8lWEuhS6Obr3na7HUwr5gfj9lb0TZWOLF3JUBJtnisU3tkbzj39TnOCeII+GI2mQzT42RyHDyB/H668EHufVmCu0MIrbuvegzhj59v7e5snVvV6N+44tARbjfrAaUAaa1ETyb2AXm+QROppIKZhw2eso9efoFYHh13bBUZWg9Dnwitze/6Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by GVXPR04MB10381.eurprd04.prod.outlook.com (2603:10a6:150:1e1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.28; Thu, 29 Aug 2024 09:52:46 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:46 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 6/8] shared/bap: Enable set qos method for BT_BAP_BCAST_SINK stream Date: Thu, 29 Aug 2024 12:52:04 +0300 Message-Id: <20240829095206.91150-7-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|GVXPR04MB10381:EE_ X-MS-Office365-Filtering-Correlation-Id: 90a84b1e-7d43-4b0f-0991-08dcc81055a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 99kvTl1X1nVCwRYtp/fuVbWo8WOvIh8I0lyd4N+6QRnzamj82q+IbfBZDVOMnExABz4/o9dkqqsaC07O3Hi8FqRMT5EmzePPXBTocDxzqv7gRuz5ENUeBUlqiUtk8B2H0i/GROGORtHWdQAkB4LLjxn3sHNCz7eIzOtedNE6XMOlUGTq6gkRQKkSfCaslapCDmSa5CGrOBMnqmM23FUI9f9d9zggivCq7Ls2N2Gl11IwSTxBzBAPllKBVnfkAfUNNA9SW5O7sCFqNaikR6yuztrWAKZbST/EQ6yZC5quOvGJNGlXFMYLYPd8MZ+Ew219PREcMphGN5SvVg0eGpET2ivOD4dxMjx2Jj+hOjw6nYMQHHRLHcpgwGMTA6a65l1hqcZrz28OoGrAn6iII0V76qJ11TeEsrcGwVZoXcvz+oRK1TjoOLdtUQzKyOZ/oYM+vecjbSJZBN5zk/Zj324mjmhpgR1VX6HbYBBvDhBbiArZMPNyewxnLC+g5H/5E+TqqGm8pARAn2rDbfsLL/7RTGaUUsUMAI9FbN3arr1TemIGZk6R60kTt7R10dxVW4eh7yrR51rCZu9k1nwZXiT3TaDsNaSq6btOaFkPdy3M+3AH85/Qh6ksRKcDmgdt+9Bp+oBVNuu5bqb8SxkQzacRZhW9mMbT34WVVRD8FUCfgMwAGoaNAbbqeP6ik0L/13ZFWvRIP0AnzH1iIGezlN75wd+HbjZbREhLYy5MQAbXPsWiFZxALtOllzORVEbSi8q0++dJJSXp/1XSu5tXb5+nSS+3A9GlN6UH8moA6Snxr3P9YdLwWeCyC9kYAwYxH3E76f36ZXIf1Koym5iteb3ZhALAg+/+0DhINRcDF27oBzpcY0hZYe9S51oirbBA8djHzMTEaWBGbHaw/S6lmsoJ0dQcgwzl96WU6oCa5+t0kR0RKN76n/eQEi0w4ilNxO1by9nmmxX8LtkHpAcp5MYcJEvTe/28wwuEdUIvtGEjD57oB50q9AdSN4bXa9QIos6MTjfbZmTZNamwKw58Hnj2DT6XdxQSPeQvQobdjV11+5uHcEUZA4ZW9nj6gmaLyx4igjQOCIqFLLem/y6hZ4gjV3LZEUq5H48PHzj5Ea1CAmvTS9vCnj5LcqwH0ZEwfHnILCXpkT+sg6VSwD9D4O17lGHjDpPsYt9bIk7F+2augljyg5S3Kf5vROov6M86uBkq1HZKFAYL66F5bC3N9JIQK3dDUCk4T+vwV3o+YJI68j2rdtXtvp1p6w+r7PaZiFHaHRBHbt3nnD3E+/CVfZ0J3PmH6tN2In6SsjQcFceONSBS9TX62TDtc1+JhmZZZNEJPGVIfKoWnRLxp0B91eJD6ogGVWmcpcnXYVlRh/1AgD09C6LUyXCUT0vf1Eqh7HIKGhcIvdHUpVg7xRL8prs6rA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B9AryGYoH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c55ZPFC67ErLpX3XDKaZuEMq6KY5d6gVjdBzQia9uNawcS2tXcHUwgIZO6AfhkT1gSnH0EDzX61mMAlGmfet4GIYn3F38NafsrvzOK1JPryT/drREGUMi2t96rcou431yCm44ZBi9dFc280KpNKhHW8VqRXd8dpn+ExbImtK44WIWFikz9wAhdAb+7+nFgli9pkzIej/UngOle4oGp6+7lOAYlmDSEeM62hXwSEdLQt/BB2dOexauY4lWGcXuQCATmi0nYpYygd7AyioKZZQOh19y+oavYJc/28zLXnSrxjsCwkSdAbnkM/QhVbqctR7YYFZdELp40PJ/Nw6V3r9/xAB4jvWh81xotyw3juEH5E3U7P9dvyhmvOXXPZQWpQ7Q0Np2LqxqFRjVY/sAeDbIMyN7arlu8pTjyaXKo7aPZkyDF/FaBbe6IonaKACAr+PLVrnWgJc9yo0515lcPP2V/2xz0F4ZhiW+fRliRBWo86pbfvuHfxs38 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90a84b1e-7d43-4b0f-0991-08dcc81055a7 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:46.3789 (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: Vimz8xanRazFMXU/PEDYvn5yi84ElpIdRzH8kZEQ2qcYnX7hh6jb3/zqiF22SjCfGiyoFAk3JU7jZu0cfOqD2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10381 This enables the set qos method, bap_bcast_qos, for the bcast sink streams as well. --- src/shared/bap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/bap.c b/src/shared/bap.c index a7217b417..97b96e49f 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -2243,7 +2243,7 @@ static const struct bt_bap_stream_ops stream_ops[] = { bap_ucast_release, bap_ucast_detach), STREAM_OPS(BT_BAP_BCAST_SINK, bap_bcast_set_state, bap_bcast_get_state, - bap_bcast_config, NULL, bap_bcast_sink_enable, + bap_bcast_config, bap_bcast_qos, bap_bcast_sink_enable, bap_bcast_start, bap_bcast_disable, NULL, bap_bcast_metadata, bap_bcast_sink_get_dir, bap_bcast_get_location, From patchwork Thu Aug 29 09:52:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782922 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2053.outbound.protection.outlook.com [40.107.105.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CCAC18E041 for ; Thu, 29 Aug 2024 09:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925174; cv=fail; b=jH7VAD5UGpWo0bln48tDa4mI5NCVqhquAyxgJdJ9LXiDcllllHVs/CQNlKteUwAQSr8CaNfvN6djl6B/AyVRLtcwF+r+cc7exaI8DYRFJKPckjT4N42CuflZ0gBLQNScUlF3i4L2pV3qlCBqJxjK7I4VhJcJusRE2w10r7/z/PE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925174; c=relaxed/simple; bh=rJ3EvRKsw8u5Pplp12/DuA6GIw9y8cdjcM+1ss2FTqc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=M0JX9epSeDBYoNXpY9zAM2pvmFLy5e/GNoQL5dBLlM/dkHZDGvnfiIwaAtkAETvRtlq9vZSKnxUoEnP/v7QNglS1dJhomFNXxmcBzIupzFiuNPDIrL9SzWzxpRjh8KDRtompZOjsYQIJ37UoPxKsFztjSRKsdHVdgDiCam+VSGg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=XqKo9pbM; arc=fail smtp.client-ip=40.107.105.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="XqKo9pbM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cQms1mK7DkJpsLcYUnrxSElyjH0dmhWYQ1SuQihppCuUS8yVjGBQIuh5iMveybOMoD1AKyVcO+TgXKRs6vwlc03no/3tFQh6AGGfnbnvKKkAQwmcphRrh3iR+JGWbC4tak+/7zT5bkAmsDajZl71brWZ19skJHXrA8dnubmEzzoiFib9PkMUREDC6AsUaTPbblax8YY3GRSxdXb6rQjsK8gufGr3kvcGp8TL8p+kVFl7Obcr/jynXzqdjHshreFqNFnatgPQhocfAapiSwJaLad+BOQ2rMGIlza1wx3jZPpn7tpY0JpHbmv9oAZdIz9YQcl1LPpzbrebIFolJ0od6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=55NUroQtZB8/uKmFYWoyR7iVmGqDZiLtyA+wZoMZkFg=; b=qZ5DtVv46Xp9ELye0ENaXyl8VCJ2uYAlG7iAJbsDAeQCzIyQ3Qd42xxmDm4mh+DsRayPcPvOIMlaJ2NCxLdzQzrD9pcweNBVDs0F+y+PZnm7AxMUF0Iwu6DShcAMadeyHetsoUoWRkTc4H54OJu1vvIIZ8XXoM9H7JsRle2lZ9VWFPR1T03SCaa75a4caQeLVfWRRKUbsCbPh2/V1RJEF7WExPbA/0Jz8a6TjSZoBW6qk9S2TDGJaUma8Qjmy6LEZxxev41AIRjE5xDR9ZH7oVBEqb83Q/x2SukENixzLjpVqY6dYQUGc/mew08mdezwpsdVwbUw0aOBwkxYbzAkZg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=55NUroQtZB8/uKmFYWoyR7iVmGqDZiLtyA+wZoMZkFg=; b=XqKo9pbMcIFS3nUVjaTbWzmy1+ETjJfZbf0qxpWG++tMIPwGUF9Mj4Giu8fuFtd6u/puBgoADuHvgCB6ajXASnjfFxadS15EDk8+b5fXU07Y5W9tg4nGEGcKzooh+LfcuoP9nxyqx5yvV0hoGgP9jbm7P3HDzrBjCoFZ3pyEYDJrBNmw+lrl8iZBhXMuo8SjnmkU5ViNii1QEgdJbOrHeDppTJQeiztAgo/0PNWeiddhhqfOmyIjO8RqWAOstYn9A5X2OXgDuGvbIQSzOyU9YLDfWHNekIOKCG3YvgfsWSiwWA5N9V2mA3phHB7tqddNlkJ99kF9Rp5CoPCTMvCCzQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by AS8PR04MB7720.eurprd04.prod.outlook.com (2603:10a6:20b:299::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Thu, 29 Aug 2024 09:52:48 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:48 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 7/8] client/player: Prompt the user to enter the bcode Date: Thu, 29 Aug 2024 12:52:05 +0300 Message-Id: <20240829095206.91150-8-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|AS8PR04MB7720:EE_ X-MS-Office365-Filtering-Correlation-Id: 832845bb-715a-4245-9c82-08dcc81056b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: RPqbSjLGNm8htjAnLcB2AAf7jnem7pv0PhWYxoYdCVEoK7NnM0/uxoELpfc6Z6DOzSdGzsSdSrmZBHoRHBKcDUKcObv0zd/fYpbA7VbkBOmokxYvSeBmD8aIkIWOZYIEtYH6NS0DIT00O2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BMa4xzGkUGNLy6DwmsnENCaX6o6dWnjssQF3jlDUnd7LE3Xgy8/xY3HgkBawSTEI54QapOsLLEEXaRmqgL84pPvGpkK3KBrf1Huqmp3SMWUlFUNUiFCtVLYv/WN28ZwJ/7GcAw2JN2dyriipQFbmtCV+NM3SQ2SgxP95znkbBLFk7+ICughyLn7/S1cqZwbRQJDbBR+Stbmu4xi7yJF2furHQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MiQiMWPMnVN5fptv+x0X9CqvM1Vd7A93CE/5b6DkMsMgRmNBsWCgk8XdnFX2em/cgUds09zIrEjq4NFqIplEYs2N+Rrec8jrAZwJkQfQfRB8bWyFpggTLwZyx0qYQ/herutAf5RyAq9jMSXPeZtWjUMuOhFYQAZpdGWahalrs5ywdJl7KxVuvChWfe9XSdqthZoDRU920NgR8Z7Ig57LSrY8fkquKQ7lrgrZS4fdr+0MUbnq1aHNYHI+ioPOOE5uGy9MvfyR8IYP2n6JwlkGFA8sh3Yg0la759z0E2voqE+6CikG4ARaa3bGp3ALFbrRTG3KFZ2uJs5ao16HU9JRBfveFki3ppO7gTU08ftYbNxYu3fhefatG28z1SRhm7loQzLbh/7T+4FydaR4Vydorm4BFw2ZRU/pOiddUo6Z+CvdxyERDyCY7cPgKXhGWOk8nGA5h+s4n756Ev4kj0O4zUIDmvcn3Sb85MgMRlpqUYNuUf0QmP59HX9Wek3udQ7v7AKQir4Ci8ZC2zt89NG3OOixIifkjnqgURi83NpI3AmaxhrIVbXbWsP2Zl8uE5VKZZEFofIaNebJppK7Fzj2DEohCyCmilxH2bXkVofP9DXF2IwYmtG81yU9hhCIamcjG0gnsUCPSXR000sQR3bwKIW9A6RnPwsFdTde4ZXk38iZUwYxfmu3T212N0ObLFOEkmPJ4BfcWfJ/xGdEypk817RV1YXt4mQKffkhMZpr/yw4ay+8II9bTEl9X40OrO1b1fXO2f8oE/g6ne7gukvNV7NK4IYAyHwX+KH4oP4XrvilESw0lfewrzCHcrEzF9eOb/REuhJTtk122y1NjR++ZYsGDRAjmDFzqIOTA5938tB/8N0uAINp9E/XmdIaupcr2Rw+TuP+ksFi4+L2d9YSBvpm55n3iu9BFJvIxvXRj3jAAY5TSySumy+xcgCKsvZregkSQss2/RJOat18PMZCxEoA4PK3idB7B3NAP57OYup47zTY0e1vdelpsiWKYiBYYzsHddraW4ci9+EwO2dX8g3qOge9m7IiG76tl5MAhCnQA8qy95ITYOSkHmaxmS7cvNU1q1n3Pdm/7zpl7fFSpIIcMKmRZqYPyrCTDDPhVSmyRJh7xdCx18iqpNa9FosD4nrFXqToTCTdrcuamcjNThka94Yrf8YKOvqZ8QB/TQlIPtu428aHrbjzYgsg58BaB5sdZwdY4dvgoPgpuGnljFM8UPb8H5Z3kiuT5QCbYqHeWXs3bZaG0V62Kk6ltIpBb+coTgk80KEivbGs1ys9XTA0xyDd5exJ2vpQCFQTYOcrs4PENa8zTWL6+JlBhIb3qiIVuniwasxQeDVc4nLvbomipMgA5coLqM2LKvq5qIFSNNhP5uI44jpm2YEOQEjfttYaZjvssRD1L5KalI9l+7rMd1ORFiLjWCgdTUnJQzb8YRuOTDwsHGFnFTGUQy3GtgLCBs1N00nTqa/wVlGT4+2p0O5hPbLzeTdwkv6p50ytciOiFlrMNX87N0Asy+ErCYEjFbARHQV/tF/nZSCiXnWq6M8DvU+4UXeXqsIc7a4NViOTURF7Dlt0Hjgc30LK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 832845bb-715a-4245-9c82-08dcc81056b7 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:48.1496 (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: 6FQbNZMb6YPW2q3W801NcFNvMWarjOeC1RTZJ2qjbbHMIBmItHsIxaZMpLO1dGmxer2b8O143SKn4+9u8eiHCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7720 This adds support for entering the broadcast code on sink side. When the user selects a transport, if the transport is encrypted, the user will be prompted to enter the broadcast code before the process of transport selection can continue. --- client/player.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/client/player.c b/client/player.c index f1cd90966..eb944a560 100644 --- a/client/player.c +++ b/client/player.c @@ -5022,8 +5022,67 @@ static void cmd_acquire_transport(int argc, char *argv[]) return bt_shell_noninteractive_quit(EXIT_SUCCESS); } +static void set_bcode_cb(const DBusError *error, void *user_data) +{ + GDBusProxy *proxy = user_data; + + if (dbus_error_is_set(error)) { + bt_shell_printf("Failed to set broadcast code: %s\n", + error->name); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + bt_shell_printf("Setting broadcast code succeeded\n"); + + if (!g_dbus_proxy_method_call(proxy, "Select", NULL, + select_reply, proxy, NULL)) + return bt_shell_noninteractive_quit(EXIT_FAILURE); +} + +static void set_bcode(const char *input, void *user_data) +{ + GDBusProxy *proxy = user_data; + char *bcode = g_strdup(input); + + if (g_dbus_proxy_set_property_dict(proxy, "QoS", + set_bcode_cb, user_data, + NULL, "BCode", DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, + strlen(bcode), bcode, NULL) == FALSE) { + bt_shell_printf("Setting broadcast code failed\n"); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } +} + static void transport_select(GDBusProxy *proxy, bool prompt) { + DBusMessageIter iter, array, entry, value; + unsigned char encryption; + const char *key; + + if (g_dbus_proxy_get_property(proxy, "QoS", &iter) == FALSE) + return; + + dbus_message_iter_recurse(&iter, &array); + + while (dbus_message_iter_get_arg_type(&array) != + DBUS_TYPE_INVALID) { + dbus_message_iter_recurse(&array, &entry); + dbus_message_iter_get_basic(&entry, &key); + + if (!strcasecmp(key, "Encryption")) { + dbus_message_iter_next(&entry); + dbus_message_iter_recurse(&entry, &value); + dbus_message_iter_get_basic(&value, &encryption); + if (encryption == 1) { + bt_shell_prompt_input("", + "Enter broadcast code:", set_bcode, proxy); + return; + } + break; + } + dbus_message_iter_next(&array); + } + if (!g_dbus_proxy_method_call(proxy, "Select", NULL, select_reply, proxy, NULL)) { bt_shell_printf("Failed select transport\n"); From patchwork Thu Aug 29 09:52:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13782921 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010035.outbound.protection.outlook.com [52.101.69.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9154518E742 for ; Thu, 29 Aug 2024 09:52:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.35 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925173; cv=fail; b=BBhx+wk5IsCfoVZQmdxA2ioh1LtYcMZfSrsJMyrDB7HOrkU2TqKivxZChSN7+FpEybfWBQkdsQVC+rTjhLknInMQbAW19yDwtreqZP8KRFiXOFlO8zzg7aKJieCQgCufAQ8ePT877EXvQEWb6QEjwfAa8LSoZUSjpOjqPcfHOm0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925173; c=relaxed/simple; bh=IDLawUEyvX3s1kl+lmawmPvc8zXhR0vZvVKZhYumhdw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=S42FvvRD3EY3X7hLV7cFDTjSJxzRkbsNK/pFd+141BDh2t02+BeZva0s1T3tSu0WJExnSoJ2GMdgUdIdKC/gvo2dNa+QaOFWM1ORfpEnR0/R28PhHRQ1iQI1+gFXjjKZIhJgXHLidrMhNzpwCGAGQJVwSs+K3hGBdZd7I6bnCWs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=RS/m0gID; arc=fail smtp.client-ip=52.101.69.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="RS/m0gID" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NzV81Mv5ME9iniMKCAhLqtrr6/vpX2qus31Aklq7pVn89gKV7kxHXrdzSZiSqE8Ro+vjAL5RCs7VL2YSiZmG9+0VONpAwDdZgnRBBxsTIc3BH7yDkwt+lQGPoexfbZXnsfR2AawFLbuogGd5GAi8NHla8nFekITyaNpKrYWpEu2PZ4YfhHCGA+wQUVzA9iwNaTsy65em8iCzbx6KC7Ye3IUcRO9D1M+7fholwgiRu+lSmqsIyWEMM3bpA27b5P0HC4joiWyEyTXYmCFQYLdadZGGu6GdJhtGTCni321pSG+o6amRKOn1uqbxqiL90QRbRLTPw3UkXj0lgpUbKZBiEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Yi6f/mQOkXTT2HCAmu98ROPUTLGLhJFYiPnzUa3oRGk=; b=CzVs23bfxAEl3Y9CLkPu5HCL0UdZ4anisSK38Ditlcod5K8rjPvq9c4Diofx/XrPBhCFKg0GsKoo4bFYtTb0VWVKDpkZGpM9X/TsIfS8A/5StzCLDxPuBEELL3pzEtgOAV/KsSDn6iTmxfYFMv7i/83gl6SqPD8PBK7BcZ2LHpApGCDQrLc4CT/2Sr6BOEXgoRZfiDJOkG2C4HYIjIw9tyigld9twsLTisVjNm4x0n6sUFaCjAdwhSvh88qlkm7oQ58YuP+c85xgOlPH2syCcben+gZWVz7csA4ZbtJc02N185jsN/Cu5BrcJHzOmWQRCldXkQG/DDu+HOJeUDjKZA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yi6f/mQOkXTT2HCAmu98ROPUTLGLhJFYiPnzUa3oRGk=; b=RS/m0gIDYffp5mFUQ31NI208E8FfPlX4Av64Zd8EUyouzo6o8+JKseBMK+H9BNmWOAJzpZqGwiuPttrikfsJ7aKuzeSzcFivX9HitmU+pD491jVIPR7QPb6CkIc4XY2qMj9YnkqT3JLFirOXSMoBomTiV2nxWxcs7mHCQLxxCOOg/JBj5glp8WUrD1GbGAier7Fs6kbow21kZv6YqzybkG7FHV6XMogX2BZviROabbxztvFX2Ztw7hba8EABTtG2RNvwDXmfOaK04O8Jako+hFIxiG4t/nPyvEOWGZO1LEd42ZqyRsXOvI+EvpE/uejg2MYPG7qKWGYYxriBc6WsrQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by GVXPR04MB10381.eurprd04.prod.outlook.com (2603:10a6:150:1e1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.28; Thu, 29 Aug 2024 09:52:50 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:50 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 8/8] bap: Refresh qos stored in setup before doing BIG sync Date: Thu, 29 Aug 2024 12:52:06 +0300 Message-Id: <20240829095206.91150-9-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|GVXPR04MB10381:EE_ X-MS-Office365-Filtering-Correlation-Id: ba4d19a6-9692-4ad2-3f07-08dcc81057cb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-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SMePmzTlBDXp+EhNJbtS3YuOl0OICZa5b1iH2X3uvBN3hf5jyi01OHAP9coi1REE09EpXzUgSxzfZu7RLPBbNizpUw3CP8gePmBUNY3VTPeqZB6kZFGvhVcNT6w6P1iadWQVjTNtUnCwIt/g1EzNaUi4zLRxsP2DOEaBayMYueIBf9uj5tCrxLZlVQKbThO2gcKyU7rCWYeM28TR5ea/iWtP7jQEYFmMsBegG7ValkuVYZc2pd9KtN1gWrl8k6xk+b3cGk02ypT9SWwmkYastAC0Mp+b0ikKkxJ6GsiNIsvkfV6DLOUgJcDPZxLwiQbhVTsn6/y2cVIoSuAWWfspLS8P3tJx4DvVsW60KgcW6tGa4A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bj9Q8Iouo0PJOU1KKrCTREcuwQsGGHVMmN2sWvdVEUlw/w1Tg3xFzlID5R+eG//u0xakJrWQzPWi8rUaSHW91aBmV2qZd+cddV76BTfOPWA1BIUlt2TWyE7bT6uhFcN6z2j7tWiIDehT/feZksJjiHcB2paeCwsNLG/3G11+oxFgdOUwIh6eawNQvLBLiW9ul9bNYCkrqnzApD2en0eTH9jF8KuvC9ccqG3eFsg2PHkw4vYtKCOiWVoCp4mYfqogBMKPT5gUUKBL/BqT25wuuTc5QN0MEx6Z9QEASdar3QxjlwHovJbHIbtNA9hecgNH9xuaHjQnDobSbbEXXPkgIYc7rLY/TBqGtUcn/44ENzhUUMDv8A7OZcLFHQ3ROj6chPCg5JFKInSvLITgINeoilOhH2WgSj8N+1UM6E7rAEDxRh8MM6E/8xWEcgBm8DKDkiW6FXIrLP+K56DAMFBcBTM4XIPZYLtyd8WWjq4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dkjsofd7bRxo/mdFUL6islT59 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba4d19a6-9692-4ad2-3f07-08dcc81057cb X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:49.9956 (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: F1KfdIVahf9fCdLjqOvQo6JkCZ2caQMxW0ScdUU5noyz5xZeDj/VNwkhRJh+Ddbo2e1JhRLZYTo2Z7EL2vZH0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10381 When syncing to an encrypted stream, after setting the broadcast code, the qos values stored in the setup must be refreshed so that they reflect this change. --- profiles/audio/bap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index a2c5a546d..80ed1a7ea 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -3066,6 +3066,8 @@ static void iso_do_big_sync(GIOChannel *io, void *user_data) iso_bc_addr.bc_bis[0] = bis_index; iso_bc_addr.bc_num_bis = 1; + /* Refresh qos stored in setup */ + setup->qos = *bt_bap_stream_get_qos(setup->stream); /* Set the user requested QOS */ memset(&qos, 0, sizeof(qos)); qos.bcast.big = setup->qos.bcast.big;