From patchwork Tue Aug 20 10:39:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769925 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 7509943179 for ; Tue, 20 Aug 2024 10:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150597; cv=fail; b=eGigHCco4hhQdmqZWfLr0QPq2yx3wsugoo/6eadN73Q9TsuQz6VzeGbuL43Hcd6GW1oLgieImRbLODcoE5DrI3KyIsF16zX8724/j5EhSCT009N0GmN2wodcc52HqzywDxHWRMmGfbLs964eAXCfzHch73HP64YpI/91h1JeGCs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150597; c=relaxed/simple; bh=jJx/HJ4oyiZSbsojYq9nWLI8CC0iSABsdLsiDvBv9lM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=mnXrJzPKa1eiNc1VMmu+ejOwrv5Rmg+TxrO5WFDUaToNLEcEZlcemLqopV2xYlineCZoe4pA0KrGPlrg4FGbRsYGXHR9fJMbjcjgfCoNVgeEmTVx8AmXSKJs3dYDL2sOS5COOdsgrYcDXbiqpwmL2MDIl0R/vE2kXgU4kqnWS90= 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=RERrtHUV; arc=fail smtp.client-ip=40.107.22.82 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="RERrtHUV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Xg2Dq7eNCOVgm4vwsQxaQW4tH1SiU7Ouu6k2wVqErYju2dPWnkRGywYnSKy3j0G1cOdLfeAYGzgWjOqepHCbi+ihmhtUEgN5GO5v0eOy/v/EkWFzgJ+BVvQMUtsDaSt4gMszmhTtyg86gKX6OO6LpqIjt2+LfCJQfC9F4c86RM/5+WBBcrqMV0Eq9Udn/79FEmTNOFZwX6dwCCi/hXDvOZzyL66AxZoxhtqr3rL2u4bJuPezVoJ9xpASVSDxj1rFC7f9TzZ4M1wF5UL3nNtVLQstyNEJJVF5WVaxi07SY6bw3HTl3e4GeZVttr9TtXq5vSd2rYhrEGM9W7yYYJ+tOQ== 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=Qpo8h+nHpTSJeKn1AFfG3NbeUUS7eu2CLAm2y4cw8BEyz/jB91PBQVfBq5iArZLKv7jdIt694PvulmpCxw41LUpcTiND6JjuMmH7Ah8+RNHXtzVZzWwdPVruz+xvj3EJ/v8hEI2ox3Ds55UEMaq1t+qXjWKArBsh21l1N4LaHIPGgGSLg6ddSh1As+CEYqKDZkP/N+3vDzq5+HTb74fSrzwSVCsa03+sGxJz1TfjnMEM1Hsc3RnoSTc9l7nOCZ/Qr1LByQ+Ab7YfwthKaXY5pzRrUGB0URHWiodS08RZRQzNJPP2OJItLiASp7AxxDEknAVR0cMeAJVywfs0oPXyDw== 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=RERrtHUVx0HiqtnXzf6vG1qMviYYfSEV89ROycAtPn5SevYZSW0hT618qycJe/iG/qHBghXt06ZERhhEaunkaTkq02lCkzJ7E356Y9hL0IJzlXZO4OYly1NCl1bpidcE2Ai9cQ/lfy8bAFy5Bds7LbXu9Iu9fPAfSBB1sjxmcvSB3I2rDRHtlJM+uggmVCx2fYxYi+fYOgX0VgGQAGG635e72svN5DFBSgm54VwOe6h2guPHj97eSLlFqyNpQTVGmhiKzBVs3W6Qp+E9yeXYunnGdgmtXCZfIWbgyDh6X7IGxM01L3hZa3C4vzOtg7Q5q06FQTYE851XSD7DeTAAKg== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:12 +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.014; Tue, 20 Aug 2024 10:43:12 +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 1/8] doc/media: Add Encryption and BCode fields to QoS property Date: Tue, 20 Aug 2024 13:39:11 +0300 Message-Id: <20240820103918.24246-2-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: 2d427067-18be-4695-7063-08dcc104e3ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: D8JUnf52j+K9qOoPHr9WqToy6DdvVqfCKp5L56T5aLS5pJSiwnHB8SMJZFGFwgSHH6JiO1yi/HTMhQKQWHO64G5iPR+LHEO9U69Bi+3xu71AU1lI/kFyubFyIvw39y2i/XZ7fQtrvRb7D9iC5pjqzCnmtrF2S37hJc88+mNH9v6QtkG+UVSBGxxGQYnuQbVPhR+an8uU1RJe9xneZ3RDHCYFoAXv8kCBk6ZvTKssDNHkqHzZSBOciVGoFcAF/W2VH/QtWsdFHMjf0SZh2EthMFC+rzUE3GogTytOCZs5H3MS54FSo8CoFx+9L5seuYQyb1wPuB+KZ+R9+G/4JGCxpn9IW2HONOfYS/FC9DLms2BHt2czKnEp2cr8RASptdLiOejajsWOyUSZce+4sk9960KkebiFlRLa954VPV9LIP0/5PCFSLSaI8H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:GV1PR04MB9088.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: adzmaT3pNarc86ePmt8yAHdha2RozX4cnXLz1UMBGQIUK1atxJz+3WrDl4EKvlo+dZNgNHpAAdMjfA7cIIo3ob9DMWRIT045AxJgWCW/T1/yuC9GFgHWyVvM3qwtDrkbNwKBJ2KFtynhJQb/037rjm7QlM04t+qZv4G60tjaQIq5ZNDpTKUyJkCcGkBLxzErMVIMJzlz/Mgk+crCQbSMurn1Grx6qwq2gpP+WkafO3x0ow7FCg4ucKEWlQbLjjpREvYWJrJBGc4KR1kFtK8bn9RKcmQHF6uZ6dD3ruw5FfjdB0B8R5/azCxak3oa17ab3fPuOP1paiKMbzWVz+IOBusFs0ggqA2kHYlft6NUdzjCyymm+iA2k7hGSc5Hd5uOnmqKS5wjU9ujaCqX7iz2+Mt+LlVNGpgY2/ZJRuLQCxrpuL2ZJNgaCxzDTPrmfTAF3JBSZCh2+KolSNRIE6s+pZPhmGd9d7r5KCfnyRFZfywDJowS2YQCe8gcaI0WrVi7mgoaaku5728RqCGlG59ipnmOEuXjW9SJf0wZf6CsoffV0tdX2HPSMgc5HuzAgI59OxCSV1HE31fi1Ti3tIFDtXwzQHhLt6O/5civ//1H3oMWxD0pZqTUAESetD5fQTpEZYw5vh8QqO1YHncHXnqe1zt1v2NL1bPCR3bpqnXx8YhPeD6EA5vC3VTwRFMGz5uBsnALi4znT5xmZoQARLy9rnKcURY+3nvHuUrobMMdWpcQjVHwkDO3cKRPD5nGHNHkJgEy7TUaFhqjimHvMcknPFrwA2nA4JC7och+qyIjPh2dXbYq3v4l4x1MOqrx03oyIk5H1/ricb8JBHGvZcHgRyexCBoNNCfdrfIyjL16fHq8EONmPYuLVBSWZHqfKM3DVSNkcUO/gExYHeoT+WrSctYaFNKuLdd/k7Zx2E1YVKsRa8g0iM8vBfIWefMz7cn6uUfApH0NbrSyFvdO55d9ujH5q4AbZqUxL3p1wpAyui3npWHf67oVNlLt+QmMkFmX690r6UmwGRRRhlBNkO3/Nm+WgsG73UfSsa3H2nz/wJVRH3J42fpZXvdv1aZ/78/4J6X7ERqObrIBYrlcXIkZp3tkcqhMJFvqlExb2EXoktSB1xuB5ick8q7UKttBVTEtKIDgYCGNbsiplR+GStaOzcWaU+haYSXn+3GdJsQ3D5+qrfxzWQjsAPqd6DPmGm3G+K2GYEInCPzjCC36P3Z7N3fmkuoaQyanBIEXwh0bt/LL4DQOOt8OVgu56AqW7F3dOrEv0grPZQ6Nl8ncMn1TsHYpqf3mW2Wg+zeXflk4iF6PcFI0RU70hKN9Rk3cWsVM9Uz0qw/ulY8/tkHTqCFvleFXYM+lJe9+xYvf5LR/8LqGV5C+aDNM53m0yWUFIEDQOrkfDcd5GHp2w0T6Pzgdniikjq3QBwEVKnALyxq0RpMs1HThVZqIa2A1JjqeiviWRdeFllbPJclE2Rg3cPzhwlaRmRDcbYqmnAfTIgYW4y7VQ4ktDYUUnp6I6e3vFD851N03d8WIKQfxKFONcMPWfRBb6qW0y77+LotkI+7fdbhmc4tBcq6SEWXNTGwaJ1LV X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d427067-18be-4695-7063-08dcc104e3ac X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:12.5378 (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: ZtGQn13yNIy124kqcBaQ/7PpV1NY8wmPEaR0N7Zxr2IL4PU1XsYL765aJw+uEU9yJkIWi2Jw6TGaS4GodlW1IA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 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 Tue Aug 20 10:39:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769926 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 B0DC918DF71 for ; Tue, 20 Aug 2024 10:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150599; cv=fail; b=SmrJxhEOlfzgK9aza+YmXiHOkPu7dMaxd23fKCYdaFVtgNdWv9FIF62DWXWEw8mp1tSgOxfWZHzgg2WH9UTcSuIW9pa9LROUIRlA0X/Mh68Qu+eQgBj+TwfSg8kS9tDPjQd5WE2mFmyXLFedBhEgY9oXYap0wljW2aKCfuIbcgc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150599; c=relaxed/simple; bh=NUSt1nJT7sKygv4xw0kO1WAyxC05uiXUoJ0VFDqIOHE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=QoHNfHMgfrL7R1JaAPq+rYVbUjQRhzpIb0bqFdCrOrfKS+M6H9P4nq0N3wqdqdGazTcUj9aGq5EKIVzSrkoitZ0md+xgiYDpdFTjQNkILpJFPOZGkyNDbnHyWwik6SYRbB4bTMAoAG3LJSHc5rEN8bWPoPA7aRVxdj6QlkngpG8= 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=F8xzGuIl; arc=fail smtp.client-ip=40.107.22.82 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="F8xzGuIl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hF2qWMUa9y2mgFEHleXqHw81q3hFwVREuneRTMm8GfO3ZWAJkPEN1Qa/O/dIwoAVdkfaeHpWrc91671UP3Bh5OVLy4b2x/7tV1T1vMPLTdJGpRBBJLCEqtMoD//6PAbDJZN2uYhXJ1X/Cnf6apXRl7yCBpIbm/w/e8SfCFtpzkEWUj5LuK5QDwFSOicXSYjmzPjGeTqfiWo7JI5oZwcHHOyQe94Fj8hsNi1y+kZnsVRAkT1u1IVeuZSeSU0EjiOnSXHTfwLI6hCL1RUtmsVhmiM0zHwab4a+wlpWD1XITyohRfJFPkEx0+2ckKA8TwzSmwc0AvdSleYursh2XNKJEA== 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=pnhCz1FhH9jZaVn2IjczB3sCZXHsX8DsuEpxTBiaIscgOHdqwYrKLcrKa35p96gYK58KVgUSQCcMSO2DSJHHwBTwjFOCydit3XXaC0sQVZ/LwhVcgfmse/gcmz7oU/JnLZie3BsKVF5f1T8KMnvMgecIE1uwXfilJHnOuhWmbpcdj22vBNDFMUx61UsOJhz0wRMWU/6pMmXYVXxVidYcJgiNqr/hX0FR5RW/oKy8szSO2getmLPU47cp+2tHZ9SQvFVc5QNHKpE3MeI7Fr4zKjXEn4c6f3yURwvidomcTmN0vxfkl0h6UxV+0GuHkd+8mwAlQM1EDyZ8d/Y326rJjg== 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=F8xzGuIlqFNeCmGlqP6wdcQxH69Bda3wil54y5oduMa4AN8BFfLyHcCvXYdiK3i0j56LzhTSwAriHRDVida0fFx2rC2VTW37IISvevWT7XOKCxMt4NbueLKDXJXr03v6RB5g01xhCd2Qd/96Crl8rbEb0QmhT3FoT3/kRzD6a/spJk6LtUojgPC8UQGb4oJOKgLCX+qLTOLoF2mxWEpVAlwRTSYVf7xoldxPANcNqEV5B7j0cjA68DuFuBUWCDcQmgHiiHdtW0Xz07i3NrHyWBB3xZhs5wYLo5iUcNCCzFZ+M/L39gD9XWxUcfcwvWkSpIK09hE8hKwq1aPgO9Rotw== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:14 +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.014; Tue, 20 Aug 2024 10:43:14 +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 2/8] transport: Make get_bcast_qos return the encryption flag Date: Tue, 20 Aug 2024 13:39:12 +0300 Message-Id: <20240820103918.24246-3-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d9a3e71-f7f5-480b-28af-08dcc104e4d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: AlmtUOvnx1/qZuadfF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PpBQ/imkTTwtzv/i+pUe95fO6H/DSwAB0T0M9PARo+jXB+PwEJWraQf4oIHMmCw4jYczGrXKB7yA2Sp/UrFK5wsoKTgIusyPwz/OoWmrAwd7n63r4uKj/rDulIHJ3JDNRn8PwptRI0ksSqDiVkxmt0UZ0e6ksBldlIgQPe9H0YM/+ZzNbSfcY+2xTk7yyEl8rniEEdD/KQ44Vvz9BhmSLov10DKwquHGnzfgCbW4H7HrYkSvmN+I/+9TPm2LhHBza1/J+MOt2hu71hILOxaIBLTil56KwzvfeMqAoDjEI/6z4QuAAowuDYCO27fdg== 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)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YSlgAMtuW405Hf5CogTDTIorjLleYMTAMUtO2I4NZst8vXAqIrxbQtgpZ64l8aByVUwEaT6hMxOuFy/Mf1j3IOtpMrVpUGtta7KWnKp76ovnRrUR8LqXiz05ngSfWH/QQiO927o+4ebX4rZmQ3EvReW2kiEAvVaJWSKxK8gBsIX3D+j3Vn/6AVBRIjpSb7iIpXmovrXig1F1setvQe3BSx9wCaa2P/WrbQfVjYJVLiNJDGCimn0E0YcWmabc5ZXrNDO3D+kbHrDd/tCEE8XNI9TYkERh3mJ+okj3BEbcftr9ERw499BYz25o3YYNMEgUm6BSsUJhBLoVVq0pSIu/JmGWKpdCvZxAosMcaTMrn2pvWc/M/MkF82O3p2hEc1+Idwh+xtOZWRwjjjGpwCXtsZmzDd2kSXF6lm9dh8qaxWnjBdegBpOD3sHaJAxfcW6sRaARY22TCzoH8+7L2dxTVj16519yzvQiMTXCvq4bh2Toli8RHt5kv8mkv3OXWEXyOJcW+kOot43m/bPW88uI/kfne1e7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orOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d9a3e71-f7f5-480b-28af-08dcc104e4d5 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:14.4967 (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: Eo9MpUBSleRRacHkpxr2k+jlDeSJfeVt56fqG2DTCRrV1aRLfcZfQDvQmKn5UtIMVwHU4UgaY75K7eqNW4mA/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 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 Tue Aug 20 10:39:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769927 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 C7776158A18 for ; Tue, 20 Aug 2024 10:43:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150602; cv=fail; b=UxWzjyT2zOBdhYDKeKorGY9gQt6kJ5hrHLoo19MQGCtigsSkRCTXtEESxScSoQyZXrtcYZVr0IvTX6Tf+KhuOUAEN+Bt2RGGQ3FOl8DP/3ijJcw5BeyvNMye9er9quyQYaku6bojwZQ15NlHqtfi7ZqT+NURcfy41ZImBtvEfuw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150602; c=relaxed/simple; bh=ITK6I+aiC9pnfqvRCBWZJjnpDjD+OyfZCUy6BaHu4Do=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=EnvAzGiwHao9IuSBa996c+JxKKEidDc2Vy30WhQdFoAFBvAlqKNyZrRLlDYcXsjc6//fpXjWLSFledck7p3z5OP4X3Zz3dzWNbX04km3W0YW/E5owKQ+m3j2m7PQxuZafJxYHcVvtrdEBCcvGVkI8by9n2W1U4PYB4uSk6JFoz8= 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=UPx8IV7c; arc=fail smtp.client-ip=40.107.22.82 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="UPx8IV7c" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qkKxc4lA3KX63XdP/8gP4e2APsl40FMp1cWb5dBePYF3DbXmoccvCbJ97SuQzrQxM9v24IM1PAuNmt7R5h7pEAr6T4PnaBSSn6hHBGLkuB9GlCTBk25Z3h67seA0zqxAnvioqyvIMXXJDKxm1u06pdMY/gwRIrnGZ9hTNPEpA2bqvICqbpylOFxF6oDVe4MuzW9zSC9Z6st0QRa099dGl+G/I5yRTnPSk2AVdSaRC0EYfI8pR+NdkTIRZO8TgeYKiaP7c87PtldD0PjUxW/9c1bwhLnBO6EUPLyLqGLeTTpgHolzTUyZChhqLgR1OjF4PlPXO8VhAW+Ct0YBi/i+sQ== 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=WLHtQfZ5kLUXv4cohNM77E6vGC1rveLTAZncRyHE7gk=; b=r5Ta7q0Al5+sXLHVzBPEu+irYvKav6hy6J3+xQWd+MXbMj1HP1Fn/aptWTkHqxh1DkertNXaisFhn4cmk+bETmliLMJZNrPwonYbaBNs5zPDS9Wc1SYsygvLBM6EeaxFUdB4JtKkwEmwVV3+TLU5SAmo7CEuz9PPaRaXvG+3fVSyA5gZYCqwFJ8gKTrBw5hF6F9gCLCNn7v6wGg0OHl3TEuTHmG8hlFA/L8eBcjHCqxHuN/BCN8d1NVtu4wBo2vQHoROf3f2laPLrJTc6agOduuIJb5RDL7HpQn+gogxTzlW9dP1lkf7v31eFCQIgxLpQfviIbsG/EYFQygjxqsA5Q== 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=WLHtQfZ5kLUXv4cohNM77E6vGC1rveLTAZncRyHE7gk=; b=UPx8IV7chn21GhFYYYeluJIu9Bory1IIJ0NEc1wt4AzyG2SVqFQJJb5V9gGWuzl2elLwYKmW9kw0XO6shewRSEjFm97u8l96yPsAyQZ1RGDhHqn6nTSiEDhrKshemTBn7cpFuSjuzyj1cayFYiys76AcwfOc3abdCwD8Y8zVAj04wULQVFGZ2c5iqrPbVq2mQ0gQGxXnpVqK50zunChmBpSbz0+W1kmxts84QL+tl/AxbylR+vInHY4TodSlvNOxQa/7bLCe6AtE+BQN7D2wZRFqaBQg5BU4OkGeyTafFIW6A6Dti9dGWdhVWI0U86CBWHRIPV7rCA+vX4LbJoXeCQ== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:16 +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.014; Tue, 20 Aug 2024 10:43:16 +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 3/8] gdbus: Add g_dbus_proxy_set_property_dict Date: Tue, 20 Aug 2024 13:39:13 +0300 Message-Id: <20240820103918.24246-4-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: cafd1f41-2359-418b-906c-08dcc104e5ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: VR/oRZQ1kZQN4PsRsN1ORvTraLUksDHaSbUjRGVzhX9mJiemyd02UHjw2s6ousdvo5/nHD7N1apidM1CRfG0Ek/O90O6T48G/z6euQscHojsgB9Naj5C1tgw2rpefbUx4SAVQhAgNUmovl0StHmrvkeaLltAxw0ct8Yc5D1TqEeUBjRa7KihJxyJi03pUEisddw1CvuXrUYGAbJ3M2/R8Y0/q3nYVYIdPsWao68V+Y5ZR6RRODEwZTiVn+Z1jW6/08t9FPDAjPnA40hwuOpcxRyBkod9JAqf3pjdFNKT1135ZrTEnYZ9kGEwQPoJ8+5tTtso55xwcwXBqbYysTLYm5zhgTH0utX0rUiybq06DSer7h6SqMDth03P5HyV7SJliNXEgbtIUBXqbP2ZGRZZFkJJa1SWjUWtRAnpbJmAzGqyARFVneadkbJMNNfqEcLQhLCZTS2IW2xrfIYUN0lNagGyILRVo4WiAZto/JnDpb20JUi5FwDMNRhkk1xq0+8zds2j/V9XYBnexUK7otbvHHcucm9xa/zQ4OVLsOy0da9LqGs8bzVXrOUb9iF4whjDReYKlbog864bsUt8Jz4r0JKp4HqUwBXjy9ddJ6t4My3Y7oe1tqKWCjOnI7m6dV0BIw37tO6gg+lraMHGkuSDTD2YFyXKfdx3KhnBYs1IMGL5an9MLSJhHxGkOOKcZExxjqfaw10k/lqD5jalPg7+/V6rw0fJLazfEm48zMOuSmkjhyw4TMuHZcNTiDdI1kjwAU3G7FdOdh/902b77/eRkACmSFb5Be++qOlamALXoMCpSHmB9Zv5wxYDxjDU/MWSjl15CTk5zeAvg/7d/hwbJQyBxKQNn5pExdGkSGJ5qGCUg2zjvhYsWDCmfh9EmKEAA4lfQL4jOKq+1egLH6fgEvN+w0z1lCoAxMEqXMjhGXjNsMJJaISP6iU7LJ5O64qJZfYDS1Cb0MmVczrIki09f5rGl61IXUyqGkicqbqBZPNLx+VqrubOHLYyLnyVfO5bVM5CeBOZ2bdyFttdPOT/D/W154RLVv9WFlr1j1Tsvu6Sds38QUvl+QeKA42aC+FW6/QUsy3KJWVUmzWXcmfmTd7Lp+QbbFB+ruAeQz3XMENaTJoQbm71FBD4OOCEjYMuOrqWh/m59QtzH1GkvnFdF7VbuwD46RaGBryK8QfclO/Hha2SNi00+Lq54B+Di+CckXbzzQG26LKRAWnoznFucSi8P/repfDZzuxIu6xGUTbqHIBUCk/Qbrh3LENEzcN1rOWsIpiTCaOIXTeUYB1VVPH39RjP0TuIufCCe7YqT6E5gTWmsvv4i8Fvu7JPP0+OOzlu4niH8eQbqG4po+lxOCGE4Ec4SYWu+3uf3JvHxavwEFTcZVr9oqt/PeoBcYSYXssKFeuGxMi314pGN0YWPQ== 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)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kmvgLJenjUB1FzWqutx3dnGQ/dhcjpYcTgjp9vIn0qnH9GXYhGwU48xOjRjKUP56vdzIdaR9AAWVJ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4MiO2gC0JhG/KgNMvhl4Tuk3rnukdGBJbqly014aVSfaE+zRurQHgFr/+5l+A9IwgvLLJMmK0Wvu2/R2ILAJpZD7lCk2NeSNa224XTXe/mZ2LEyEgA2Pw1nSwCalNbcqCRvUMUtAixVd3bhV4WzIqFIyi8uGU4I7bH2C/FpyJ8XdlaWey/ebV8fHMnfLdqVD5+kRdUU0AuShyYNl0NKgtQxo6kpgN1OSPyUBt7qaGQCMLVoDaQAP/B/FKcm6c6OGXFvqm+TnIvew1ZwRKBlxlAyMkax4kiVnIGF26+8AKQAHy0cIbL69amHRXbURkWsaDffUsp7yw9eBdTSC8iOJLi3OxR3Hn4OWGx37yB+7IyHhBl5DfQFTQvRQC63CsSohtgnlvSoPxSCcron9YNcJmAtyGapD2Mdh60LeKocN4N5QVV X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cafd1f41-2359-418b-906c-08dcc104e5ee X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:16.2877 (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: RLyYYrmjzWPlmqDUERRuYpTTS4TPb+ZGZNUpoQmSrRNfXlNFTO+Y27guUDfuCEjI5fRNs6SDHiK5lRkiwiFgRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 This adds a new gdbus function to allow for the setting of a dictionary type property - a{sv}. It received the name of the property, the name of the entry to be set from the dictionary, it's type and value. 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. --- gdbus/client.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ gdbus/gdbus.h | 6 ++++ 2 files changed, 92 insertions(+) diff --git a/gdbus/client.c b/gdbus/client.c index 3b7faa4e4..980f8fc0f 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 * * */ @@ -184,6 +185,33 @@ void g_dbus_dict_append_entry(DBusMessageIter *dict, dict_append_basic(dict, DBUS_TYPE_STRING, &key, type, val); } +static void append_dict_variant(DBusMessageIter *iter, char *entry, int type, + void *val) +{ + DBusMessageIter variant, dict; + + 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); + + g_dbus_dict_append_entry(&dict, entry, type, val); + + dbus_message_iter_close_container(&variant, &dict); + + dbus_message_iter_close_container(iter, &variant); +} + void g_dbus_dict_append_basic_array(DBusMessageIter *dict, int key_type, const void *key, int type, void *val, int n_elements) @@ -885,6 +913,64 @@ gboolean g_dbus_proxy_set_property_basic(GDBusProxy *proxy, return TRUE; } +gboolean g_dbus_proxy_set_property_dict(GDBusProxy *proxy, + const char *name, char *entry, int type, + const void *value, GDBusResultFunction function, + void *user_data, GDBusDestroyFunction destroy) +{ + struct set_property_data *data; + GDBusClient *client; + DBusMessage *msg; + DBusMessageIter iter; + DBusPendingCall *call; + + if (proxy == NULL || name == NULL || value == NULL) + return FALSE; + + if (dbus_type_is_basic(type) == FALSE) + 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); + + append_dict_variant(&iter, entry, type, &value); + + 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..4aaf73b62 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, char *entry, int type, + const void *value, GDBusResultFunction function, + void *user_data, GDBusDestroyFunction destroy); + gboolean g_dbus_proxy_set_property_array(GDBusProxy *proxy, const char *name, int type, const void *value, size_t size, GDBusResultFunction function, From patchwork Tue Aug 20 10:39:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769928 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 48E3518DF6F for ; Tue, 20 Aug 2024 10:43:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150604; cv=fail; b=lW5l3AjduJOZXgrb98X3vi+FNf/LHxjHOBULEQYCmN3TWPgvwRGzkyUgu+ZsbzixD4fazO5fkZeyJuqT+APe440/b9Zj1V/Yplp8dEPUzyHGqCWowWKCltJRMSwvRmXpeEBBphT/THlGP4kO0kvd7WGfSmHmsTXBZO8IM03FVpE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150604; c=relaxed/simple; bh=Pzu+gROpzRbssfrGnlhWMqASjJFJFEjMo3gTgOVB/ok=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=DaC3cp4wnnxtV2VFT89ESd8h0WqHtfVLpAzJDAxUF1q5tKspBZ9ZDKMRNX+o+3Yg4veW2mzPP8yeGnoXQPZwF32A3hmmeYtjIAPLCGMB68iHa7913GNDjDkv/x6C470eEdAz0ONRuUJgNH3ZO7B645iUXZqKn8FUet0IXniGBbE= 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=TJVdplSN; arc=fail smtp.client-ip=40.107.22.82 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="TJVdplSN" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AtXdgT33xBExq2jPXWboBNv2SDD4zQwN0YFO9xUzcsVnVpsE1O+nB5/CDZWc9zMI++fwpDfVhJh+c80y/4dfYU3wAZhePZKTuaFX3jxQuyL6QFJp0SBwXNIZFESN1LPTvGWGrFI6NGPMADvw6EIjPolPSUmn7WW+OQlUxl9JUyt4bd3/CQQtB07BUtRFvKc8xoOs5sVqwsZNOg3nhu7H/+U9qTXBxe5frp6U4BNjDy+wpjIINT3Yqh63HXIgyf4zN/9ofS58DnyuO9xBY85iOcriU4iSXY79KzjF1E6DeXHucGzVnV8LTccfbOz1SK4pFA4jBEid8UXu1D96AD+rew== 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=ves0VgM/Vt7h2xtK75KuT0JFR3njqbcYSJo+HY733wabUNDRLQS7Vn6IqPyEySm5mAtCigpSpiOxNBk9yza+So875vRy2GSiKwqBOkEPzXkGVvc65o7GLUXEYht4mV75lWex8yvwN6P5A4278o8FFb6gaIj7VcJS4qynXqzqFxC4s2xELBhHN9YwDrQBtYNJuhBcGrmdly5Fn9UzMnaj2orH6fhpcyYiQF9/Odz30uUpCHc+yfzWb9fpkrjh2ib2EJr/V9ozuQ+lEpSzRX7GvOa2I9MX5kogLkqhy7Wx3D5Wo74Q1AJIc4Z9PvJzbLZAnaqdMOd4ylicIoFGrQrmrA== 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=TJVdplSNfGwtuLMJ9D9/uWHLxfF8dnYrNdeHFhNmyPYV+woBYS5kUlQBWT6WvAxOFjEWtiBl2RHalk7cgJmaU6SAPsLQlbkcSuQGOen+bPt8I6cvnV0E01dPL0jWHR/QSAUbZHA+p2q8+RLGaFpFpHk8NycqKKQr5WEJPJZGbkN0VvGGitXkMp4rytgOCL4LWm0zeTJe2gMKPTvrHfokpTm5W9iNi2ANKC3LPg85ssMtPmpyDHu+Qd477/oUso0fGUcGLwuWJ+ajHgsSMU+vNrYbXwVgIs+z1F3gmrMzO/MQ8TBT5sh3lIlvh3Xru4en8qIsE7qvRdmdZKudrl+eEg== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:18 +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.014; Tue, 20 Aug 2024 10:43:18 +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 4/8] doc/media: Make QoS property readwrite Date: Tue, 20 Aug 2024 13:39:14 +0300 Message-Id: <20240820103918.24246-5-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c27358c-6da8-4802-0603-08dcc104e729 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: qcjHBG2o3MuZCGNZei27zDFBnGgJv2orW346shWIzfy9tQ3U7r5NSkNBxy6QLdLpiSYFjRc05PVrF8qPqcGW6sEM2Fq17Le5c9SyBKLAUOy5y6QHiC50/RItNFssX7A/Re5254N7YHU9uSkfTaPiXiP/QvUV2MAD2DXWW/TdrfOK6VL8XBg0+YWvg5yrMW9ufxfR08ghfqgZnvGRk2/8hhxKUSJ8S3Ac4w7EXX4AXg41NK5zi5RsCRhykZPFpRJ86o8u9CLkytGBigozV3BqGZa3ypbkglfBxBgNH4nef/tqJKMW23V7me+sMJapZcHDXS+e936sUXl0F/xhzwc3zn84GRjZfmOwgr9+TiqFkNzVpbVrUDuZdDgloj8T+ARme0ShLCVX2FR1M3Bbgbr9yj7LMFvsk0c4TdyDzlSXFHTQgcZ0kbcGCTy5ECmD7ZX4S2ihuks8R3cdGB4uqOkIxddTQNUPFpTS2BjN6NEZqYkpZIVMQIzXakA2QHdU+Z/U4OZvQQAN5lRqqSyyjCNs5b4fLpd37qp26IEvv8dioGSJSRNgw/zXiVhTpBdB0l4aHDhlVu9q5Y4PvKLO3RUntLAZKcdBMnoXAyh8xh9ZVomPK30aPzHUXdRHNeDRekP2VNzdYsbT28XHPGG7RBoqzJcyl7vJ2fqicKioi32Iu+cN04PSqtsvqtUOMtkANgOFAJT9zE3FDqel97dbpWQvursUqHcZpL4zlFm/2I9q1qvG7ypOSbwEy7oBnd3BR50hXqB/fECGnPWBzjM+Gdc23naSlwna/v7TsXQASxqb0U1m5uNTyJtQK72hMf+DL5M2i7nzIbj10R79d3Geomdnd9yeYFdEoSMMuQQH8D79XfOCVaWM+yKyJf0JwiQD62r1AHXrehgVkyt8iRFWQlG2hRIKLI0XI0y3cpzzz6IE5N2iL6y8TLnv/npRdvnPTym2YPFi9g9tY2gYMM+S2rxGRE+ZJVz/F2IFpnJE94w03ZP/LGEePEXMSKlRxMebSmhDTU9EovnRQZ3z1oo4hPgTzqrymoc53D3uomnrZYgPfGeIW7+RHzPEh7V6MSpUSAKOttcVbVXYzapeJwFhi60WJk2cDl8aC3/EzZHk1yqVPjJ5NS4cU09lCNm3RGEHo2I6IyrTEz2IHoH9aGjYW++9aV6MTafTjt9W8Y71+FPf8dBf2fUDEq20y/MZA0oQlSSm9+rD1nAoM78kgRXLvtQvkI32XxlDA9XqhaORTN3DkCeEwpAy0t93GNdwQ+2cgK6zyOQ/Imdnr+h55rTfQtqr3DeApP9ky02o5EhJbeK3qjZVjQENLwVq08uTj/zugvtiMhe1omPdDhFbexpG4oGy+g0v+jnC+rHqvxbb25pa8jOTK7HCLkdwDSP8mTWRIbvxX6onGDyOIdzRcvVwq8iILw== 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)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oclv+Yt3VRi0oDfQoWs4JFvUb3lj/Lw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EJ6uteEhKcDTcNOL0zJcZ3JtyPl00Gf7RmGtBXr1ALvSvkxtlws9sOzqcsHhqae0g4eHQr6wdUmpGrZjrO/5cu4Q0QUyRHORl0DLZx4zwyfG1yk2dvE7o0hicoeRyPBdKljFnvDGkqLLCGtGMXO/Y1XKCUW4abtfga4jKL3xJGe02Aga60pvQIMkDjLY9GTokQSSDXYYRz25r6fjpjJfgUqCIGWH3AYWFRhKnvDEkS2QXpTZ9xapu8QtjMZvPQAJFgsnTyuiOLJEo7Zd5FW31KQgnN/37AHsVojfmOD8lOiSVFlnwTlB2Wcduq2capNLUxuHjOPIQb/kYLcoAWZ4/R199OR8P9bHSm/OegBH0P+/zvEimtPOYOvA/9J2aJPpwltRH3PH3JpTGQ9nHvGaDZfA59NaFwJ9LFwHUP66Cj3+RWGB+Eigi9EUnrZFweoEB9WycAZUD40jlPbgihahHhWxqqylSoL5dRI62T0JqjM+DLCgk47a X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c27358c-6da8-4802-0603-08dcc104e729 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:18.3702 (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: 22SN0fKTiTGCZYDIt8Epv+r7tL+MQ7tN4jr4OTEdrcIgZ18c+qrP0PsYOipa82LtQIsokTI61G0SCl71w0gfAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 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 Tue Aug 20 10:39:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769929 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 5ABF8158A18 for ; Tue, 20 Aug 2024 10:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150606; cv=fail; b=O3M2OYj2+CawEsBPG5JG9qveolFA/hlveMb4dW3CxDLOv5oL7BrKG7UsSb6oQlRua7B0PI5mG0bcjUAMx7c5ci24P6QRXp4bKgcsAqSDzKqOcs46WndkJZ4vFF94M1FsGYwFSj4xql0Gh/Vk9mI3FS9GMcD445nYjgGSHFhdZcs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150606; c=relaxed/simple; bh=gYgKqf/W7QuahMHNlQj5seQsu2jDo/EzRoKIoqPJH4w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=CfRJ4wdIJR3kDm3djUCPUgGY0cFadKOA2jTCVct8jGqYEy9ZmPdB9zOS6ZjpvtTvBBKA8CdtB2jpoRchSgsHbJ2BN89nH8hcBZzdZ1MWYOEbDsLpRVa/VBIsxRQ1rK+nWjp+PBzzyRK8J1cLlz9e9KKWxweQUxn8zmevJOUtXYc= 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=QAF0Y/RW; arc=fail smtp.client-ip=40.107.22.82 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="QAF0Y/RW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rx7iMaXZ2JMHc2Ia2onHQNUC8GCOIPVBkMUiORVEGZlQaaVfoJD9Sc+mKYo6s/v1PJUFM+3yMac5YPriLUpu0TyCyFBxJyF8MLvt+Vh75hTWrUl3IukuwAGL2N1ppsi4TdhJAsnr3cPsusnB1JJixq62gQxsyKVQylhepRGme9jSGSRjjmSOS49UFDI6PMJwNk92hmFyds5dPi+wLqYjJuF0aKZmgsFVFb1Z8J81zJfzlr0zP0q/PP9vLn0CgOYOzaNHXyVUYC+hkOFXCnthbXRRwXyK1yiRfWENlHu6ySaCd/Y6Br3z3m5vfGDThy8G1tQ6/MSYJCasj8L9x9tVBA== 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=4nqzerb6xuk1Pssm7WydafGfZmdw8hyHUnDD9LOlL88=; b=hCNGRh3G3RZ1CXJvknf5c0wFpC6VG5zpEaSUiamxtW3v+s8WknPZIgP/VPtIrB3dV1KT8WiQRcGJq9UQACwEx0tiUZoj11bj4gUQ6BdVWT8I/vw/KCr17aSf5CEcyIfxZeuL5BmdlOBusc8Cg9DyUW9jOXNj8d0UG7NzH4oeL3cer7azXe5OM+t7lfIxBQdwO/op/wfvbshAAlFrLOON84uvdTuomzqtISHCFVlPo7MB/J/FgD28gysrTPjcPHFuknDqXEGHThhmDE/Huw4ZQYepxR4BydGNkpEtgb6ilwAH/yI1+h+6xLRYsbstLhe8FebjmjN4F4a0qoPCZjHFaA== 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=4nqzerb6xuk1Pssm7WydafGfZmdw8hyHUnDD9LOlL88=; b=QAF0Y/RW+S0Bza3njqVWkefzzPWv6qtk60UzzKD2Wos7CScYFeUuJe5s6k59eRSXjsNLl/cP9FnYsrsSp8mXxjFyZF5YuorCe0KVz2rhQuW0POr0uvds1ex4Z6glgUoQwLSaHeFcs4bZ4CitDLRgeEX1DfbRuDraEFiBdWGiJqYPojUt+Cl5OH74Bti13sYTPiFMJ97Pdp4VIu6xcpfZKY/l0B9OrxF4WzlR2qoKTK27w/EqIg7CpSKLSGuL/MBX3Gf1yjPzYBGCXw85uzuixUzcTR3lVjy/mpAHv78V01555GH0Cqn9DpEh2WiNCtNgL+RTdBjvUAKqb8vfjnIdXA== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:20 +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.014; Tue, 20 Aug 2024 10:43:20 +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 5/8] transport: Add set_bcast_qos method Date: Tue, 20 Aug 2024 13:39:15 +0300 Message-Id: <20240820103918.24246-6-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: 13bd13d0-c940-4e39-1c3a-08dcc104e840 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: Gmz+3ksP+/aKyabOtDfArJP3caz2S6T3UZqrTVYbhv1kft7Cjyx1okg9wgXHpeho9X9loXrnPmMTvtzZelQ03xZMwWMtXkSW6vvfnzYrco2SzvQFJ//eFv6V2FxeWvyhECPHGEF0JhMllysv79IxeLq/H5UVQziTu23BOk1mSnh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7nMsEs0nltusQsTc2vg0MdFmqtBvBt0WBeiLh0JwtCvdE/TlxLN4XmGCGSc79VT2spVDtxzEVKM4gn27s9KHzUjnBXP7WWeV2NEQlSZmxUa0hEGYcFXoCzKRqlGIF+Bo5YNON4eLOCdoVbi5s/Ryy7aCoFU9+ZA8/RlxK1+8XTnb3UIJdKWDTI067P2ig== 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)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7zV0FgT11E71hRwtMoxHCgjwnJpkVMC/GCzM8XoJixkIQLIa/f4cDi8f2xc5m8OBhLniM3Xda0M49/QrJ+MxEEbgJQ3cbBQQsULuulnlS4fENMIS786+7pLHYRI2SSfZ9j/e1MAZiV6tLLGWdasge4waYkeXg/pvhEkgbVSHI68yFFxyeN5gf2wxaa/B1WLZEk4DEFgXszfyvhQu0o61hhE0rABK8DRjJdCM7elNUJpAV8cG7gPXCfRQwMryjCFeLOkaqRTFRYf+tQ7+RGUVr6YqNIaOCcMWqfCcVriDuv8VDIMW8Ks6LsWmROmnLIye2YUtZwB7Q9aBRefI8bZGnIBfR76e3vbP3qkt1jO2yYC+vB1oq2JxYnUP0JLZwn6tyjZZ/hzaOyI4DjehUNKAlAyPDyU0ZY2iK/u6SpZpK3vD1YURqTpmrDJ4RBVKQCZ4bMrLUnyhx5ibnEKo7EboC/bs09/tZ54c3o5ZqPze/OQRQy8tbQGre7ta4fxElYAmIWtNxQcXQHcQ8gTlEsG5WVO3VTlzv8RcPAVz8tzTBkHWS1aoPyppFuQsUi35m+7/CI1cBFqR1qVdtrmOOKDu7d9XcYk+k2Wv4dthdfY9Gjsw33LFT0iITviIQcYUfiGTvdXvDGV9YmdxAOqzA/oQUfDG5IBFpnfIIhkMdfRZEG4j1+N3eNsMdj6gpwZ2t+xzG7mNzO72hV0NuMthGCWr4r9LXtYhhuEZhqvEMNSsOU5u9gbCIIcL4Vgcav/0MgWiCU00gczScIa84/Gy4hliFqMYVy5hScjtWEExavgUq1u6bLT+QuUzLSe9tn0ckr2122e9EsSorhxu8Bs7DmwmQVlkdEu22Tx6BvdvlDGkS4Iup6uuRxTUHI9/tM2HdM0TjicB2hL8anBkMrtCLlpfzIScwKy9TyTflnPCf6/PUmYCw3LOMYSrcVgdztwvjj+urfzbwxfe5xeUlAtZg6eld6lMjLuIG4mF6mixHrI46V8mQ5SvBYDKey8WhlBhu05UDmmP+NIOJjQmdYtOHxr+74+fwAWQlVQAtS29VrzZNswtQxWSTQ7NvZ6PrfxQqwNcnzByFB9rpz6u4O+v3cYsW84T/xAUSowYu7rdvb+oyCBys1DkaPQgvavfYHor47sufioXnT4Gzrbabwbml+sRjK3BVKZhIuI8n9+sOCPPFk+R9r8kLM7NgUyeqkgiwYExV2QUSw9GvrrcxUeU8p/UyKvj9oXTaX387+zolN16WENbzMwVGgL9P1l6dSRr7TZO7LLT+Cy1W/cAOqTtJ5BM25/ox9ex+HG3QDc1s/tOX1Ir+STtxbrAnQHGiYKntM/JoqcgE4QK7f5Uc8cVH6YRH4OOfsulnnhDXv7T+5zlc/6hOS9M7Lln1i4zBq8fqPGK60Veu5bj62ZPDwAuYXat9j5S1zx+jk+Og8oG5yfVMCkbrXm30eYA0QyFrRf/7CZVaGagSf8F5155lF7Kgysc9NxQuF6gFaBF6j9ji0yb1aWkVbH1Ej9wsoe77WrLSoGWJlYBnblyttR9sliWNirxg57gJOaves1cJfTsEHvi3jMDO4kNdkMAIC7yH28fb4to X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13bd13d0-c940-4e39-1c3a-08dcc104e840 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:20.2094 (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: rqCv7tgNYj15pPYXAgXyK1glXAU3vaJyFXkOxHvT7FCp2RiR8c7wVrYabmaY0zaJaAr5iup/Q+eQbmidrnAaog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 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 | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index e8915490d..854b30601 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,42 @@ 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, *str; + + 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")) { + dbus_message_iter_get_basic(&value, &str); + bap_qos->bcast.bcode = new0(struct iovec, 1); + util_iov_append(bap_qos->bcast.bcode, str, strlen(str)); + } + + 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 Tue Aug 20 10:39:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769930 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 859C318DF7C for ; Tue, 20 Aug 2024 10:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150608; cv=fail; b=NmRQNBEIyuTz/v8n7mR1lCG9RPHg3GRTY+l5xKz1IkomUR7ISDcYm8p/rH0WtZuUrQ4EjmryDEci/x4ony4Fx2xCzqcYjwoyUhE3XnLo0S+elqPvtmylKERyYmEEduCeFA03U4Szf0oHWjfM2YWcqFHnP5v3OwqasG1TuqJ6b0U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150608; c=relaxed/simple; bh=cBh8JA3exI/pu4B6FF0fELAZEPkTKtmCGbNWIFp9sWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=IXd93V4Q+aLUrHWfqYIwbmE1cAkfPIAy0+lU5Jl+cU6bHM9ZeWefuMWLBvu+ANL6Xro9RdyLNUBkDoWAmdtv2QJWjdf3nyuOoWp8eDiH+edZQm1qsw86eY5Vo19o1VjdUMKPnYcSNlnfyiLm8O/EnD2g/t0TPmKU+A0S4+7FiOQ= 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=Y9yyOGQc; arc=fail smtp.client-ip=40.107.22.82 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="Y9yyOGQc" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bolNmsrNI+wObC6yM3/q7PP0xC8oKgmYS4zdq8f2oTf4zNRmqUx6h7a1N88eWvyLzDTJmSbdMnfJ0kTxXi9TPV1099yaHtvet0rvGuLRSylgCQ4Bqg9dNRtHLYz3CbVTyP8vxo6rLkZmanGsVOA2U8lVzWdzPS/Nm2jQb0vbYRtVdKNvlhbrbJQBmSC2WfufH2Z6c0SgnTSSWOmbk3YB7DsjMq92I0f5Sr6X00hvr9jO93j9/VNX0meyeCVHWtImpkv0vpEdQPonlT4FMHrlkIHDv1JmfN3f9a6Mc5hOR8K2torjGZKwIsbki+0k0dlQVRwt3/R04jzlnMKrLGpaUg== 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=bK0pVVZBtPB1ET2SnF/O2Po0g6HFsaNdmYYKLQ5IMIGucx1QXgarteTKwIL6nAp402cJ3uiN6YDpbiIjmPjKZNchefaB1ZdYofYEbYuESD8vLpJzgGOVdAe4fJVrb+mVc8jFUFd/7vfKZ6WuWcxOTughgcAyaAqbkpYNpaoU0Kc+TkxV5czkWcLhT3xgK1LZogo2sbRS+IenRbLczFIS2l6R2O/9vXoHiYNuiq5u+QJGcVe8h3sUP+VbWbav/Us061JnC67DvkMSy+14xHj/GDpyY+Y0gFfLTv/ptKhvlgDj40aUeeLvOgL756oD/QKUxnXUZl8yqBRBSMcQ8zIRjA== 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=Y9yyOGQcooHEDZoS6NWfpptFyruVtFzu3tB9kxw9DqFUNWr6e64SoXPHQj4uGrLZvrurMNEziqp+C31rG9F9AYzXM7dWimB66p5yilKBOgomUrb/Zpv/AlQGsjvDtljr0WG48lhGVYttxBEF7/ZSMQGC3ybJftOq8AYhltsMfCNMvbtDKQSiPRAp+aWbrYvfrrm4/iIRbvUBHlIZ9Ha6sZgCKthkJ2LqLwzo3bh/W5jfDzkpVbKgSQhATiD1t2DT6/Cd68EuF/icVkB0PGY4V/gTkIoF53JT8QKJC5mk+arptAgfaLhaW49auBnNB6bfXHy6cfk5tSLMv87vgGcyVQ== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:21 +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.014; Tue, 20 Aug 2024 10:43:21 +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 6/8] shared/bap: Enable set qos method for BT_BAP_BCAST_SINK stream Date: Tue, 20 Aug 2024 13:39:16 +0300 Message-Id: <20240820103918.24246-7-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: cf901aac-c432-4f31-9dcb-08dcc104e939 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: dHG4ZS6KrOzHuC2wIKbRFWaQSsz02ee4Er5ylVJN3y3L4xqhU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M2kcWdDKF/dr1zAzvNDeRMRqVyGJB73lGzTmXbEwMfNhTCpDYejzEWMwHpgBFctNfT3sQIhN7p9gwo5jqo8spIAlxWVMD1VAVym2nW1Q7p4wETrEzhYd6+klIBBPCmLzebHv7oRkZvupuorDmvErWB89pwDmpfkDmvmj2Oh8WUF/9frGFDwlpEVrmGkwodJg61FZyKYsF1YiOGoIVwr3aczZr1Rlbrh/8mfJ6zneyVcFIVJFXaWBzslxnnuRp7F9Pjzf6V+0O6ZBnXX78KONJbeEHsvxEccX+eXNAHYI5EEdB8yRJ9dy0c9Hw== 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)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yoo7aMY3JkM5CBcQVyVEjJNl51gz15/SREmkMZPk2Y59sLrUHhg02vRv8TCzxFTo8jiOXZHrk1vr/epcYDQCR5HSwfBNpMh2UJsOFMRbMq4en1wUpjS2PKaItr7c1vcTdc9FJqUNW4ODiF2RWRjPQYujhrZDqp9dZ3mtpjTxpAmoi90n4/InYxTfuCuK8QEa33PAVreW8cWkl13LiSH3drWPW+V0pVUL9xNvICxwgUarg7r8ZupGzpVwsJcofwrMbCnmHQ63c/6S9hnxOcAbee5dyZHskl1iELnQ4txqWYhvWwk/PRzyoJKiDNmHpz2+ApCOEq1qkzgWBWFS3/7NVlioU6/AkKbdcEkM3mHXv9L8PeUck5DtjK0RwrPGDlcC+nT5U38QdFg41Mg4pYGX8Eoh1+sJAYGrSyP1vIkbo6BSzSGZmX8/CBHGK8nER3msZXnKLas+0BhRfiw/LcpVb7Mq3fskxhXGm48bb5rK5WnnZ8Br8Is/IyA6/qVCcj2Rt1W3Yd8yulEc3wVRTsD1P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nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf901aac-c432-4f31-9dcb-08dcc104e939 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:21.8428 (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: EiloTtQq48Vc49vwL5Vc3aThQ4H0vl9wdR/eqikpEBJ2jVcyOEP/ei7nQwnzrc+Cq0ypVSSZL69CC+pXLthqew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 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 Tue Aug 20 10:39:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769931 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 9400618DF70 for ; Tue, 20 Aug 2024 10:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150610; cv=fail; b=SSvXDRGbIcSxHSAUdXKaBpJT4iyNd/R6KKaEyldpwPQL7TrEpQfmojPXHcjpt/XJ4FbYyj4+oMNSsbxpsFk20jdpbqv1RJ1+giySNFdgZJkHAlrv/l2ABIdZzwXqEcdQkOMSkoFcJfnyw8WauPyjnRQbdVLPEL1LZZC2OafmNcY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150610; c=relaxed/simple; bh=29egCaevO7qWaIvC6EcznmHXpMtzmupOd5Xo37bJJvA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=YZSxSEgzHF5GEdmU6eVc9MBZ5QYiSQUi8CPj+SSVd4ekXQdrIOzrEO2h7x3C1VDOXNeXtWfFigLx6MXkMyE1jZWL2G7+h4Rdns7ZED9ekqObU74LH197XPMPGWiS7tTNBq1IiNfHafttNJHrOIvBRyDn1Ka3/2fbRfXbjqtNVu0= 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=HhOc7y3C; arc=fail smtp.client-ip=40.107.22.82 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="HhOc7y3C" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=azfyk2hCB81SlazsS4DGtUXIZ5Ws+ZeSFed/VHcmluCZrRhPlGmzKAiLaHmneiwuCAofzk9zUIxESv3Yza3efQSKuNRiAItwUt0HZhn9ZhHRSYpha1h+tx50WkpgAXy7fa86Kbj6sXKo/CyqwTJXlkyzDc/3otekpv5OOL6ZtQJ3DIHWZLNujvP8uRBW3ls2HwjdMDUyihqsXaJ1k6STFLYxAEmM6uJg434HmS3dBwadNMpWVIZrJVXMNt1YHxjCHzA+vdk8Oz2TTZYdmg0Za3aiia/VLXjGZn+EH1JUWUfHCPIxAgjIfMQKgkQ26yr9jzwQdMb2s0dpd+rrlegKJg== 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=/XDDNGuqLnTHy2OR6rdADRf6hHqG9lGdMI7rHo/h4hc=; b=Aq3ki4Ju2kreWT0WzcqpnEsL/tCW+BVXPPuCngMpzcCE0eeFk5HfwIu1x5whXaizxJK55bGIy7IQh7klk++fGONQirrM74m7203okb0+2ZJwIBo+oJQmTb/3XjAQfj/q7mGaZIhjm8nXVnK+paAcHM63EMUelfXiVjPXGTnyi+xxeLWrVcsMfpYH/2em5gZVSxR9zTkGDPWvuLR4hb7R8OKMpflKEI08DIsbnhoBq44VCMyGWZW5K0waSspJKJMpHO2j/Fa0OQfN+kFHhl1WkFk6BWoHWFAH/q3RbWpVjcXOPuYw2LfBD2pfYBlIR4d0KEFxf4RCk77JjWTVmP/C/Q== 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=/XDDNGuqLnTHy2OR6rdADRf6hHqG9lGdMI7rHo/h4hc=; b=HhOc7y3CiDPd9zKjps0TeBT9ey0dM+HszOnP0EiuTFBxYQj9NgYMncY5gPQFmWhXV5KJH871N1wNLKsZPkxjSHz5YlJBhhh7MMSrz36lZ9hXSCbHJplolXf3jTKrO0jRcUMGp7cWvIqzkckkRPgUzte9ertrjTb7GGUibn7N5055+alPZNsUnmUg8UbmpTCC9LpdyBN2sc4AyPX9T3O2QT5nxwo4O2biADop5RwYpCHIGvABPkWOsrsvqujfJiT2bHzQsQu14+xhQvXVs2+vW13vpeXDW4YXv8MEaHOLSiCECXM2IN2x+ByVsVmD3KYYESOZf1Ht4N2cSMzdkEJSfg== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:23 +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.014; Tue, 20 Aug 2024 10:43:23 +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 7/8] client/player: Prompt the user to enter the bcode Date: Tue, 20 Aug 2024 13:39:17 +0300 Message-Id: <20240820103918.24246-8-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: b189953b-b3e1-4e0d-d328-08dcc104ea37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: QRqrMBVoLkGlhxYFtd/aTMQGTY30CZXqxHHcoOcXf30NxnswdKAzzWKe1sYgTPI9PzBH+W0ewSyaoLSTdJGQqqk/T4dEAUjHGBfC3Ts+dRSygDuEhQiOje86zdM8Yo873dLcr1GNxXeKlcI08I897n+/QvmmSTEtWune4127Zd3vsyeafFnI0w9e+GEF04bfZXk74gqu059A5pIPXsGKrwGxLtgYqqgALH1gV94x7tliH0mS1uCdCRNuLVchMR+wos4+QVqOrj98I4M3qzsQPAk7vDRQ+zcoc8D8SMgiPIvsHXK5DY4d5CfJSlXlZNBR8k/4C179hDAz/yIaVBnNYNOgQYwSEL3oTsNTUXRvoSvQ1ScHEXrVq1QAeTYQAEHzTW3CR1XtIpqm5oylvNv4x4aLuNhEPbbQy1hJ3cTDNIYkqudNDiYU3E07Ll+tkHlqqAdBFOVcn0bserGzu7GDIzzzGPr/AgmtFGtBHYEHy8EvttOyVT2XxnaubQrPqSowx3Vh0NI0CFNeeyMxxKRKRuKT8wHXEAey4ApR528BrbI26p2NStH6NBR0Wxt4HEkpaI4MzI3Po1zHbCZkSwMQB4TF+QC66u50GfSAkaiNAK4i+Y6lwyh5mXM/dq40hdAXLcJWwDYWJKgIGz7nM8VRaIYmKsKK+JAXU0ryHDMpuVEcDQ+ZqmFxNKPkpm6BF6t8GQHPIjDp62tQ26MdC6BYlWFE7XJV0TlfpurE6DZLrAWnP+w3rnhuOoACvJf1Jj7W5eNbPDD0dkk8QZj+WAlxAkDzKMXdSOv9L0g6qr+FOlf6ABhndQQWepScQaUrQyzsDJX2A8K1U2WgYEPuVFM6mVTx8WYn6KBvhYk1ELGxgql4n9L4toquO5MEwO4oHBTLJU5dAHd97ZMMjnc/nHAUdULdZTWAGrQmZenXIhtfFEg+MTa2uZ138HqdW7JW9wuRkRo40l/N8zUzs5vAeNGXyRf9S3issYBvixvn+Pj9pCHkw01r7pP8FXjbMMD2PQfWh+Q/80P0erDtiysglewVR9/vbp87A7N1sk37GJ+1G0bAOtR4FkzhFJw7R9eHceRR9vgI4rSrKnSM7b+XXH/ev8SVW8UG5ZoV8+/RN5AlKxkDSu5eI7W7mtetd9zalmy46fWxP9bYRaUXydldIN3Ex6OQzpgLbBwsMKd1E+axGFDVNqPpsAxrBxUmu6ev0CbxVKtxkYA70xrZey4f+FFoyRdUxqm4mcNRPLh+wNm/XvOMCWto3Ox6truYQCYE3LYUVqw1xH0bwojMzQ3EVGmBOoQbVUmUFcSaO5+eksawwfkd2rC4EWd81jtDeWGJzJrRJ2fX7gdEMDgtqN/y8HyskeOQ/7MtcfQAToDmsq7XlzzK0mwmZo+/8/KNxzofqtkDIVxzRvx1J65eW+uvsJ4Iqw== 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)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hW4wxVz5lex4zEgninLvBESBjDKlPttdKlJE+oSz5l1dnq9hUkpnB7AhFhQ4L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cZcvcg4URYMGLa9usExEiLpO4GFGzdpbbbvxlEtQpidwjdHr7NHxAWySKRpecD/NeChUyY0QR3rLVxyXRtEKz1433chQd2tjXZA72W8fyWvWAAonamVwKsj4wJXIuqxKmCTzEzQ58PWwiLdbjEz5JDBBfNIo6vkkKP5S0jHea5U5A75yT4zuGNqttsOrhUe9/4eYHJMT6JAxml3a5MxB+dWRiqJzI8SezuyKqxg8+K0etUOWmRgPtknWNFxb19kTT54IAK4ZaQnE33HNc7eXEgEI/MebrcJBvIr7+rgC8VjKtoXlieDjUUUpREr4fu+t0k+b79HTPuKiGLJzxlzFjrs996eGNPuTV6rjtdfKxRlDfuLJN+HR3q1J7rpx4iR1kTbJ9kveWQed7sjbW7X/FFBnLLc3Fz9MYRwNGwRbn6Rb9pDSWNUW6YHG0mhj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b189953b-b3e1-4e0d-d328-08dcc104ea37 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:23.5107 (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: ovGdDdVnNH4nUV3/BrOWyqqUPPGHwMv67A41dbsJy8D6o5UK12MZ59nBrI+mymfkeOfnrRvWMlXojo1SklUFrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 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 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/client/player.c b/client/player.c index f1cd90966..6c79cb27c 100644 --- a/client/player.c +++ b/client/player.c @@ -5022,8 +5022,65 @@ 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", "BCode", + DBUS_TYPE_STRING, bcode, + set_bcode_cb, user_data, NULL) == FALSE){ + 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 Tue Aug 20 10:39:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13769932 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 A4AB218DF7A for ; Tue, 20 Aug 2024 10:43:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150612; cv=fail; b=tvqA0jtWD5kZH30GBdKagHyPAH3YaSpeQrgXIqFcwssfj1z7WJ05jkmuch6lAmy7KG1Y1yINNSVhU4inRXq3KGG5+R2qlJgoXPcOzcw0L3rz95CKMnMdUBlNvWwM5m7ubT1mkVAiVdGtWtf5n5O1DcaRxT8SXbSbVV4EvRz7udY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724150612; c=relaxed/simple; bh=IDLawUEyvX3s1kl+lmawmPvc8zXhR0vZvVKZhYumhdw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=EUzvfVVQH264xOpHVjh1Xt43cQmsYMWkH6uE9c/iu5Q2Ti//3JfyWPFrWhs8SKts43kECtRlyCLf+BxpJynqarF8GeoLkmAJZX32FyveqSVX2566pdPMR/aoG4YGAXSN/kNQBvOx0CCgJH3uKLbINVU+ASoPnPUkLDth74aAx2w= 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=R4QtsO7N; arc=fail smtp.client-ip=40.107.22.82 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="R4QtsO7N" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZNA5so0W4x6ysBAfyo3gT3NFf/W+FS8CqC5x2Vj4J9/lu68aMW9/z+PxdV1ngpJGx/L+1FDtLJQOOlsjeczFRwnHjqAPeQFTrlog8uwLP+TnUeqlz7GSHNxfuKJK6euVtyex/rOp3zXZ1la1XFNYOquF2HMl6BFTqjqiRl6H9THN68SmygV0ldzU//LYjmlLC+KntTRDlxG6EKkNdcpupDKzjaVsGYyHRI9l974sTcLOtG65eFDHSCR/brPVMPalCCmG5OSgdJzxtodVHkNpzjoOcUfu9KxrH2lrHQ/f/Hveq6Szk19zhrg2JPCqG2aIGhJPkhUWEx1speTozJJpkQ== 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=TXAoywYnmJcM1SwrU+3yLC0J7VzJJU7fRRXvwkUHTyd7cwMzlFNzCeT2RSQeLXeN7a/GRNwkiWkGVMAhhecJyJDSpjTGJBcg54eVHoxpPJfhXV45QRw6yGuk4TZkAxkEE8kwlYho1SfK9nLU4wv2U/SDT9EJ0y6KExaGOf+GQhtJJgjgnDCxpIj6bQmcaSmiV5W4AEBcn3scow/81mPs1JeE9FDiofs124R6h9FCgrtwcGqbBGsBovlf/2+5vGFG6R7tqVQpAjRbDb9matIHDQxB3nG6ZJCA2zNEKNePd2tdVKPfwSwvfRjvDsxeykLhHT6gz/r6EJO8qQbzofnAjA== 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=R4QtsO7N+ANpAOGZCTsY872pnc1TxfSPT2sjf/7t8TdgrAMSTVzt4jpKeCa7uSUap2uePiKY3Q2WWYsbK46RTCDCalUeerdON3TmaeVvVg4b71J8oAZDMV8ZQIqjIKHJx+LqRBgf1hwbJIf4ZNxn3bJMCbi/xg9EnSqTNvU/wPBep7k5eaPHwOuHyb/KBWcHc9fl/FQY2VjHZRT4Un4N6RCboDRqD0aVpuHXmyRc3zsu8KhCDj75os/rFlppokuEjKRq4CnpiNFzlJgPTgI4wVpwLHmTrAvfTeV/zsnQsuKdXQP3oKY0Cw/RL4uE0YYCi8NQEe0KIP2rzrbIjdd8XA== 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 PAXPR04MB9641.eurprd04.prod.outlook.com (2603:10a6:102:23f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.18; Tue, 20 Aug 2024 10:43:25 +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.014; Tue, 20 Aug 2024 10:43:25 +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 8/8] bap: Refresh qos stored in setup before doing BIG sync Date: Tue, 20 Aug 2024 13:39:18 +0300 Message-Id: <20240820103918.24246-9-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240820103918.24246-1-vlad.pruteanu@nxp.com> References: <20240820103918.24246-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: MI0P293CA0011.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:44::11) 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_|PAXPR04MB9641:EE_ X-MS-Office365-Filtering-Correlation-Id: 126300cc-596e-4c5d-dd8a-08dcc104eb3c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: VbsqjKExt7xTFCi4ysMTbJ2nWMQn6HwO5Vv3SmFHw1Po5mUwA0jVeZOjAEWRKHjMQ4pip5WDbVyyU4ISRNKGa5GovIoYkdU154U/243mZnyPR8JtpnSYCCSCB18cDY30z+FCb7BqbjbPPPhOU07xzw+Jrupg+T8nj+sywBaXnBvcE6G4RX8EX27Rh24wAiWrpF2TzOJoAMDMR8bjj/l2PdJlWsW9wCuWZfFIzS0Wlh87kNcazufTlcpn3mHruxpT/th+nKSrrmvzWYe0XE7Jua35VmlT+GWidQcjyGprgx+CkqXBDeRXx1O+Zl1hNb5/gpR7zNAEWjSNzman0Bu+YoQMTk/voi//4r3sXMPDariE6xhKmfuoUV+ItkanYCRMXwUU6W/021MeFENnh6tbu1ddLmHXkA3uxalt+zKRcn5VXnbiF4428Db1HrAARSskYIDdouOXW6vcbcjwp4zyUX8IQN6jHztB+olqmOL0nL/1FfqUHvUjkf0ucLPlDHoHRnOJIVal/GADivXvl2QOU1TIUMZWrQRYUafIl5Dq7z/cQn6xfrBH3psNiZyuiKaP/1IBE1qYp0fhug+mjHbQD3EcDG1hEIed3m7hY0w+CpEVT0z71kMB5kGRNak7T00vgIWuU4TKlmK8IuaI/1bNRFKJLpPPCJGl+EFtTz/+SpmDv3CL/f+QK7mx/Bxt4sowEZ7JrVNUnxq/Qn5658xmK0x0d6jYBRNLscNWaG9URBwDQq3QJXO7bbKXWLjiLHBw+qwG4tDz9odGhTt2O4Fv74x4iXP2HIGeR3tBOvM2Qpgg4bhi3n8U/mt8/5JmDlUUDCxpigZiUM2Wjv3+rYHr+/dOdglvNbGFq0k4iJV5V+xFBHQuCQxOK3G2nyJzNUPM/vhNvbG3uRKLvVAFN2vzQWUHPzwc7pFqGNus4PsRBxFk+y7xfECFbaMYUQNFKlmM+cTElrUNbS7MYpFNva+QvgSQdBkYeyAv4yRJV7EcQOk+WbMKQLjZH2YbCeDHgloHsvQnhAfYxoU6NWx96orbKyrNs9mrQr0M9CbkD1kaGBiDmcLrE1tpzM/Pa5edF9CPBmsZBMX5gZcc1yiLUjuP2Nl94hDR2jgcezTenF95lLhsbkCbIhuwYq7c14QS53t96Nv6NFOS7k9scDB2f+bjQsyPnnvzeQYSuZoe90WPbldYjb1XUCALQ8JcwMNZbXIOiKqA5M/jADuFkazNN1X0EO1C9DndrhLGe52rGjafU2t7CD9dsaH7KPcdDPKss8awW6WQLELBnTS7EsFGhqnoZ3IlMbV6YLQE4QeqKr0lVaoQZ5okgYzABmfyZscvxJaHP8K38igwHRYF1tLU7URgwaWLMrmDHeTLe3Kj+wIjgeflTIg3Rbv7wNtbHePq4OjQyYiNQLC3NYEp6c2MyPX2xA== 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)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-A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mwWZUbSQnMyx6Tage1ldHrVOBF1rR5DJ3KBJVpTfTjGcBSVe0bj4BoR7tjNjoAQphrCDlfRUoD7rsGM65a08gF9q10tKDvE+krZFRjOsrOVaYK3alPRVPUiJp4FvUN1zqczJvHgMJ+FvRxR7KzetegUZct8Q4d8ZKR8+Su4rD21f5bWglrXkec/FAM7NQYyX/C7WIkuukLKuo8ZT31m7MbolXlzylBfuCaK1ZyoMhSujBmK3x3kPgyfAO6MDWGaq0+tjeZ0D95KCT8kS7zl/PaZLvJs9plR3vpEhuS1iJ+LR839rPN3KpSpxcK93euBz7y4JM1sNxuu2ScDR8XLhRulIZHJp/88H45n8JRj8wscT0SEPRcCGV7XLzje/QfNVWbZvkS8Wg4GJWIYW5IslhtgMkWEqJqea45LE+n1d8i2qFdcAqclYx5wX4W0ohwr324iGU72t7x8cciMZ6YcxoC3lgfPFH26fTHZUbMDi4zKuubEt70teUHVoBMenR217d4DcXtokc1Wsl27RWbZwno0OSVyIbGtLO4NyyiPLyaTi X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 126300cc-596e-4c5d-dd8a-08dcc104eb3c X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 10:43:25.2299 (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: ZTWNulm+S2QsnkofpeceFWjSUUSOHI0E6Q/El5xsXFGlk3VTb36TwNGzrlym6cfy7hAyboxnDx4kYrG0oYvkag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9641 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;