From patchwork Thu Aug 22 13:12:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773366 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012016.outbound.protection.outlook.com [52.101.66.16]) (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 8AC6C1C9DD7 for ; Thu, 22 Aug 2024 13:12:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332379; cv=fail; b=LX+auoY859W3+7kSydbOPlcCII/wP3Y4Su02YbPntNvPSgXzmCssZ/RwrYAIkSQXptYOstoFUXNlLhgWqvaoQkeYN9gDtv3hEi4slMh2M0DE4b6bP7X5Vl3nS8pYPFCbn4GbUXPm5x2qumV9U/IVkfGxDJyYHWg6rtmFKHepvmQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332379; c=relaxed/simple; bh=jJx/HJ4oyiZSbsojYq9nWLI8CC0iSABsdLsiDvBv9lM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=tzz5ZOV5rhtO40dcZ6rR9Iqq9QzXPpjt84apqJwHs2oUwXMF+g5COCPSVWnVJrRC/mmlGY027zL6NqE/skWeTUS0HfI2riLRjH0iVWWhhIFNEsjBBpHFaxeGY9FZYfT+DRLFZ1EholQNvjBNM6ZnaxJ4SO1YjgdLhU7TIb710f8= 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=oOtfkT1p; arc=fail smtp.client-ip=52.101.66.16 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="oOtfkT1p" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nn7yrXpPYjqCM8Q+RCBwDoryqtYEAZpkA/JJIwrTeSLvRE4ywt/JgR6j3OQZ/YSdtimfU1Frd46FEON475eSh3NTxDdNDToc67FqRD8fnji9Qd380XDfiQBp93T1BUtsbNdBT2BOzvv3uPWij9DD80hWDnLgPWiyFdA4oon0pXeSYOC6pHNejdi02ptYAE7qTKWVFQblTDJnFj8ibUvhYwLs6vdcAZ+gtlA5W8vCvVRsGRzMEhp7VA+Nu68iwdF4/Io1abrcj64oxLnzHr7UaLXu9D5SQx3P/zls04eAqmJ+H0JZ11AOXQ3qzHeJhnY7ylZ8eBjlGBdGTl/1lwRmSA== 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=nduKs3trvdEY1sFtf5SPtjAX7udh9grGX9grZy3F7bQIcXBp8W2iXISiCIjRFv4jfoUNI5ozIPnGl49Un+wHeP/dIWNHmii7cHArS1m8yq7b/+9lAjtekf6MpaHS4T05D2Ahv2f5gw8XZEgkfbx/YZbsuOEeuNE+b37Kp7XDGxXsubDyABEqKmQREjNvrv2DCVVPy+acQFgwQ7zMDBIK7gXI4oVgchJinyMHxGwEHptBZLy1fkRbymNN1SmoKM28+eadw063cuXaCqM8bAoWfLK0iSQCEkdnebNPO3/b3wOfrgg5Bsia3ooDRb6d/T4GNCTvnK0LftUEWfOxi7w/IA== 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=oOtfkT1p08gPfY2C3q9ptheKZvv4MIRfbJ+tKCb4ttHeFtjFpeLsIgPN3Z5I6kipeN8nJQBQ9vnhJZQ5W/cnh7dGdDMf9WCpla8yqDlUAkVmHxgBAVio/gOubzG0FBizy4DWIqlUx3f7SRndxtt7tuTcB9leA/wJRqrCoFq4kJaw4C0HTHsW5d5wmfOxAIXzaaUPmHoqAEvkUTOZyIfxRT6BBr1eol67u9M72g5vnhsYZ/6BpmG1ru7x3BiHgXkNm6w7b8jfgxDoI41xCQct4z+H5dqmXAo4XPG+BiYn59dBcOcWHSCnJCMwOdt1nLstoLn8Z6uP1F9KkVhIGb0Wng== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:12:55 +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; Thu, 22 Aug 2024 13:12:54 +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, 22 Aug 2024 16:12:25 +0300 Message-Id: <20240822131232.531952-2-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: b87fe718-9eeb-443c-0a25-08dcc2ac226a 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: xLWIMdxAIPIHNjHnLOa+wcaQHbsGP89xgHw5uOFfO4lPNGwu9h9CGpigcIniYVBSH/g/CdwcaXy3NPQbZvVDi+rvgDIhh+ww7TcpwQoUheBsBrTL7Vc4wpitlHVZN3K6FfPjZ6AjibzwC8WJ+ou0Pa0WIQkH2wr5Bw+1a1pfsauWAZYQctTRKDe3ACHqFteSU58A2dPLjhKnuMVnKhpIHpuTCwH3LGuXBv9fU3tG9ljBnb0POW0cVjC73duyQuGV2oNlkIkwguBQqbTEypBqQq8r72dCcXP4dzH4+d2BeTtLhdpvTHAxuF8cDPLvWXDPlr2Gz87vTr2+jxJxHdH5Krr7Sj/rQ4BIRWo+EOMQ3fTpocZMZC4ZFjv+NYD0ObeQUZKqNlOy0Y4TELjP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;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: HjBXm6VcSBgI8LxtXo2jIKrOmc2SHht4JvlpvDHJbMvGlGX8j8MwvdSiBL5iQhIQ2YLf/Kel9eCg0pr+1bVqZSNsvJQQm7sB2SAKxP7v+CWb7fCubUci1Q3Q46jH1QjB1VROYelCtpPVKa6J/GCNoXq/FKxqhWEtMZjdEkvmhAmAz4GV+7cvdvJQtMTJjJ5dq//ptb6WJCfRBmnYklqOzv3YNSdEyeXooWFCP48d6Zs7gIHtoDMRykR7QY/tnCuQpw8hTzCZNW4b1sB3GreQMBsNm+YhhZzfnGSMtYjgxTkK8s1z3s7NMNr5IHxNgo4gXfxR2/gc0iWcMGG5dQKwIV8AxbDHiDB4u5YQ1UyJGzU3ADvkTZntSO+WQh35CRHoM3GK/zutt5nTBN7ZL9H6mSTcOMEz/oFYpWy72n8V7BMwJloUzDSvEfaGaDn1gkBzUlHwbzpKaMp5YCRhuLhqCxUrd4XctOZ5tj9lUa7q3s24i/ydmyqWpEIXsYzAdljarmzXJ0bObgXKZyhiYyfiJqUeJ0JfgDw0fzE3XWJcQUW0njctaGr/ckqg/X5bS8jJ3T2rJRpiqUxKoSeA/+oCAFJiLd50WK+WIRAa3V4qhOXBsR4PL18b7Wxdq/SYJv0X0vggAQ25umwDvt21Ky+90sqWvfvsU6X1/8Ei8qVZGhh3q9EBdTw/5IKlxdTiah1g7wE+rLgzwFuOfo0ONrQXSWp0pWK0zv1Ny+igl+sKTUWfk70cgel7Ld3mSKSRVSv+DFJCMzjS1YjCdyWi/Pv0heEnMyKEM4jmNDzRBrUsRR8oKrIfq3TSCUn8to1S72uyc9sGF6YhHGzQ40MlkeOX2A4EFEbS2RMhudVajz7cvrIJv7hoCIf9k5exsbGDN7ocB8Bsv5bpTEvzK9IaLIVnroO3ZUI17orZZP0bRRupjeLFxXM68nut31UGXmpFnVjPP03MmDJ3jpQofyAfeDzL/68UvKTcCpUq7T/0iJb3Ixv7JXop6DY7Basa2T5Jn/pKxINO9OiZBePIFhT/dUm4m8wU3oFV3DGjNEgcX143RQ4YF5v0i+lfJe84eaGD27fV+HJP+xj/zMFZMxwBK1KMzh1Komo3/oK9xxHKq899ykaprKMg2zohIBsqu0tK71KWQM+x4ZCWMHPdQF9CWxhTMiX19p4AI9U0Wl38Flvg0g64LJi1d5Nt8EkqIpd8xnom6mRz23cyq4RrTKW3qSaH8EmsVNG+a7SqYuepu5w3doSr6Qu0lQI9b3lXILEDWHRM9hRcnfRH70Y60T1DW6obNctGe7GaHqyQxOL7tKkpX91xyZZsuyMmB9cXZSXSJpWk1Wu5OPFNpf0pQ6qOcYQcBWneJ9Gzf6GdfKz2Ij33/f8MrRUuwo7Gl43ytC+Y+V3OQw1wVsd+6BIKyNAktPu6DW6VlQnZ93A+nwPaKsTVd4HH1fFMCGCzHVjGIaBa3f0UjK38beGUtq2NKpzK09mJUePSlxbpqW8riS5d3pIWHPYmHZrcc418GUPYee27IMasePPnIWCTuoMIw3cU/SLdiZ5+u1kGFdIbN0hUGRLZZg5POr1kh9rhW+Y65tg7s+cT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b87fe718-9eeb-443c-0a25-08dcc2ac226a X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:12:54.9109 (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: wd9aDwjLQmjYm1Yvl91e0KoBvC6H1E2AWJgCE6mJPPvLvNh1Zsh7uLyhCgv4N5wdfXBMgTd6Pa8zP3Ri2olZJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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 22 13:12:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773367 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012016.outbound.protection.outlook.com [52.101.66.16]) (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 BE7861C9ED7 for ; Thu, 22 Aug 2024 13:12:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332381; cv=fail; b=sfbaKMEk4wTrAwJE+ItapCECwVxxxtkEqbjgg2AdncTQSrWnXIe2vl1VVNp4lN7isRdEZ3mtCMCyGFJ6YHM2zC5i1YNxr6dnMmjmVVzH04Jn1E8yAKd9D6WQyBOI3DKQiAUcomW5Mi4OsMHlXAGpAyucFb6t7plf/TNVvZw7rr0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332381; c=relaxed/simple; bh=NUSt1nJT7sKygv4xw0kO1WAyxC05uiXUoJ0VFDqIOHE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=OQaJUGendQ6ErbhWIgFPTDGAhuNkhkqnpcZT3hOsnsj5L0zuSFeSL6SfZ9PPkMlMmC/Xk9VEgGkc3/Liskna8lUcdDKTt1lFgvEBZ057w32Wtdwk7TpBL9YTPU0Y9rrKylU5iQTV7Z4zzgRinyJBRPq8aMA0UlT/EWJr6xX17iY= 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=TJHKyYwW; arc=fail smtp.client-ip=52.101.66.16 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="TJHKyYwW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xT1kDiHxuVDT5l3su/HLw38MI+r0+CN39gyeSHPlQU2Ndd8O2Oxy4gzsyP3ZGu9YnXAAezXSdjIt1j/WfEuNoIJbes1j2CvRewW3fTxaeazJ9M64+5/I9x18fUt5roFIII80B4ujhpaQvkrw2A0iqYkthTXTa06DGbylG3IM0faVdZvzCtf7/qGGp8p3Pt79Hl04ivkwvEkZ15iucMnnjYebCEkSJR7X+DeULvjUffVbVGzfvZEDGSFCOuUIHvt1PXuwj7L55AsZ/exlanSGyCk7xH9YFeU9+HPRh+Hcd+9e/wNb8quC3dY45U+YQa0DNXaSumeZekbzSKoT6ga59Q== 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=slXnG5HHULZpO/ZmMPcOVPREvKgcKvMKHMyQxXBqumisbMZrTUI5lpFshymx5KeHBChgopCY85/bSROd7W3hUoNvMLrZ3pZaTVRMj/cwROLzPHSYuFepWHw1ioIepGfUjIBsBzqZnE6Cfk2yR4D3sQSFCqyiZeQPLfjJDEnoJvLSlVocPZ65ovKL1b+QJtlP/vhJ3FOI+EAsi/O6nBwc0fOXVvW25Gcyd88m3BeY7dntRk1L0gq7EeDRhAVU8pjNorStz5BzkjMW6Loe0iBQ9MnmMUY/4pBe9Qkcfqbb9aFOZVB7SNzCPATk5t3HdOB0P8B3GvqlKbpuRRvo3CC+HA== 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=TJHKyYwWn5GhFDYlue6VdnsaBMmxIL9kRTl+Lp/2KuR8E8JqJqMvBKxnx5Ba9xN5uW87wulFZOHIR2ipLCKKBJAyEukLARGREY0vezrp1aeIJtIVCipdUObSfXJCWqKchS4jtjlOqNDPzcxWnr4FZxaatbapLDHOzgvwBVI2G7hxmAIf1kICll02Bg6BSi8OMtKOg2RBNYmLt2Rhi4MKhMJfdEKu/eNdx29TwNcUzDytaIpQ6qGGOWMgG5ngdMQ/CD2MxpHrJEMmI438sJn8iVkZovaL7UGIBi/m+XTL9mdRFeH7Xk55X2/6wXJwLTvEL2Re3C6NEiuBXX1llOF8EA== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:12:56 +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; Thu, 22 Aug 2024 13:12:56 +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, 22 Aug 2024 16:12:26 +0300 Message-Id: <20240822131232.531952-3-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: 133350a1-fc03-4bcd-01ed-08dcc2ac2373 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016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CPBEz9nmyfmG2c2CyEBw6Z+hvisILMApYvB8HI4eCScJ5Mzr3Z+gqGQzASQyrQ1xEreyVUjXv+WRl+IEeoGk5gsox1h++q3WZzpaAXle/EX4F+U9DO6ZILVoTOMDm4SCaXh1hIc2lfyLzs6wp5ij+p26cjklpDBNEOjLruMZOBbjZ82cPa0/CISixZ2wbyD8dWnwTiaIgN+7/5q5qazEdaQJoBCAVHZHIlg72yvddLikb6Xt/jXgUxCBAsBK274I1ks/ZVQhX9xzm+Cll4g0RG2/4qjFcjYbfB2hON36HawCzCOaztNzl4Wd4FaHINM69WDGR26nAgj7VitAOD9MEhaAj+E3My683E0vgmHRINdwYtnGWR/dkC/elTx86nq1gQ== 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: QggOmQI4xJKE6slr+5NeIpkOxSFylP1pDvHja9d2T6e0S0CvjyUDCzi9qlGs0RJFP4kBIA0Lo1Lrr9pnCjlYM7r0fC/z0j2LmhbpBu1D5GzAXgm0+un34pnMxhXLFUTQdn734Lg/5VeqFCGN0c9h5tHV0pYRjNeRaWT76hIzZxlGCnt1h0D62sFWdxjYOxv9Hrr8mC57McsfYgaMhQgCZaisl95Nkso4FZwVLW47Z94vu4c+0BrQjL4xarz9KbmojTYDVN94Gw2z5kPZ/dRCm7QD5CxKzXDYaJheoXgySbhh6dR7hcI7O1z1sPH+c+aMY2hnPfsZfnQDMc7U4WhIe/YDZG2fPljH2pI3zTx86Jaf3XLvG+7G3CklPBNhQL/OwOudOSL2QNsg0ev53ZybI/4KDVCrwWJMwI68PViNUN9BfDIWXw++tGIGm+NBUckLrD2m9gzO0JPKEsGgSubQHLi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Msb5kXyjG91j2dBPcMn6bQruzhER4nIhWbm9Amt X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 133350a1-fc03-4bcd-01ed-08dcc2ac2373 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:12:56.6207 (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: nLIDsPsoalf4ACESnbXl2Zfnnmy21SMLdksm+nidIs6s0hjiYsAqJdOD9iFksjhaFGzqaDHyLYfN+DTlhvDw9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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 22 13:12:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773368 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012016.outbound.protection.outlook.com [52.101.66.16]) (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 E22B91C9EC4 for ; Thu, 22 Aug 2024 13:13:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332383; cv=fail; b=R8U8eTMvP09gj/Rpaqqwa6XwHRMhyT1ZsyTp2TeWOhQzQTvQQ4Gasx0NlU+0DQN4qu7KrQXX/FCscRY9l8jRQ/urrqUavhRMMd+bk5y0gu4O97pjSbEmSKfz//iGDqwMfLWqMV32KF3ruwPsma6RjFKFcc7J/o+eNB6UwMkvwj4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332383; c=relaxed/simple; bh=uDoV3UxbmKJ24oPrtPlQ/LgwVW9UTzyTzVKKXKf3OU8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=E7FhyKxtpAb1OZYItTANTrkXsWVaQCJfy6kr4YUxonetvyTww8QcI3X32+QJCBE9SoHuevtmTMnOkp263Wk2Dpxkzu6u2+YX5pqn252ke3cCGDgFFXX4ZEcQbl2aIU3BNBeIPsXju/P6E2oeeXKl8U8nJeLICz4HOzdU8h31bJ0= 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=X6zeZZL0; arc=fail smtp.client-ip=52.101.66.16 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="X6zeZZL0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uKUzGPYzIYRj6veT2nG4tB1sBvgxDqTOURPpgDsO4uqEQVM08X3GSfacH8VrZ9z2lhdErGSw2ipuzVMbNkn5hywSbpGGqKCS53N8OxJMJs7hsI9vlkNFfJ+zmmHe3M9yvXW59ZuDx8siLhkswI0u66Gp5WdZCq/bLFWyg9vmQiieA3SS/us/cX8lN2djGPezNV9BWxY3ljJMc46s6+8VZ92P0qUAnWaLN8y5ltIBn7DbgkWrg+BRofOl8t0zZ26iwabbsDkGE9T1ZzV9Sr5PfY6Ibuno6S8VdLsLtggRcyF6IjtXXHQCzjXEzarz4+IxResCklEfkzwDjwDQCGZWTw== 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=T9WLg7s5ruvXOuzcj935qUrNRzlU8C1B+LZw4nR+fBqNWusEkrxNO0u9K8IL7kPVl9nRS1i2xEcyIkoowFAPZrusFdupJIhBHGisYviMsCcq2TZjp+K8DJwoq+K2B0x6nBOvp9/YBKgO/ZoDPkLuuKDYaKZ9XWp3ldObh6Urimqg6SFQE4psp2Kr1O3r5BQ55AweuH/dSSbE4/HFAL+68UBVPIK0AAs9PB9PEmJEFSmLJFLTdQN/K8twjBTKYMsWjeDbSJPFuJwBFPSB5yryuszXcZTYcRrrHoWsVxXLwlPrsdTINEUUt3cIagV0XfpR2YHkeaDqBcJhJefnmp2SWQ== 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=X6zeZZL0hZ8cIVkjYX56Zrb68Y2+E6JkEzEl5ocC/cKPMyPguaZAAIVGpvb2D2hwvj0VXMj5I6JO8elMLaRs5OT+PLgkVkM5JiTzg7EF5ZyI79UXr8zaKurdxbWEYPq+oxB0EcXvdeom4USewQJfBd3pTVOOGKwRPjeOmz+ekGOoRCFsCdf2SFOupvFhimpWmbXFW9PEJwUqGovEVvWNFGQL9ApN+/X637FwA8ruOAWLP6ynTffIqBFKTKDfA2VizPtsq1Qu4Ptlv944pFpAy2tUshiPMsiAFSPP60EhSbroTIXa+tAWjGyPQ40B7r1f18ietGgiN23MLBWg1vIE5A== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:12:58 +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; Thu, 22 Aug 2024 13:12:58 +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, 22 Aug 2024 16:12:27 +0300 Message-Id: <20240822131232.531952-4-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: 212fe276-cfdf-4b74-e51a-08dcc2ac2466 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: A8/CEog8QY0rI09CXvEI7UJrO8NEHl0T6LjuDzdawuXCoHf5NP9FHFtqDFftmOCQLmx7U5Q1vWmwylAjIJTSbaZd3e4+5NGpjOcRi4Xi3jwFhseSDySPyYVCO4oE64d9sqaSkJZ8ZE/Y9Zneq7XL4J1KguDoHVETGoRqDTplK56yoRyAn1pWGLkAAjn06zeEZBiXLbrp9FOWEl5H/Q+YAa+aqSg4Ztdk4Ttgh1QWmV24M94XbdjjaOZLK3Twf0ijVMODHlHOhf/a14qn1nKmvK5r/27J0x9URQ3B/1B2L47tZhhfJN580yJW6Mx5LB2jDE/rdx/GaCKhKBeoxyVdXMFert6kj7p1MgmEwwRHCnrx+tkiyuESVTKKkzQH/UFz/HMCf1HoLr/+vfBWGzAXIwiqnethZYOjso+BBbYEpNvO52NLyNZVFZkB/L2SBZTdQOg6ZGmqERRp4oVZyNJePWhrKiPaXVnF97vSckzn/Z2dfYeY+vq/ZmJcDl9W63ZjrqZAi/5xmlfTpn/Dv5FRvlqD6zt7IqNmNm6WKTO+t69xoMgFgpQHf7r0xS1gWv6waikfGdTDWL/uMPrsjYywucY6lC+rir8D65VXsMhLdvnDl3bZOnx/X0L572DAQzzrpzsNgY/kms5UvSY8ScQ0QHyNPGQ1QCFUPMnpfxsnGq46WIctgvCN9jLfeYq9M0oTvvPkkn1Okg5WpHDjs7CwyETBLgwPWe/rppJ1WAForHUkYnQG/7XncEQmws//YSksPSvEj8+unNCZq7ZC0vInBP37ZmeZ1M1CzW5W270ygUL6c4dv2ktUYqhGTbWToCWwV7kZm8pwscpvbDSnx5APjt3rr6Ab5B+XUXrcU74UPw8XCeWCXiaP8SP1EbIVaLTOk5bIKMQ+CdzfPNFYnU56ufS+JPGkTuaz41vi4qzCuXFxf8wN6b4aYYBL6retLJMpbohfoBE5i2juEkY5ekkjPsBZkO+71AG4QOjmS/6d521UNWePWt2gkZ7te+NAVV65v8J23Cj9zYYgiZF/59iA4vzJ928knLABHnyT1YnTZy6PnkqKPiljwOmiDipDqjiIj6J35HjLVPOjwzx9Htnn26KXT1gqiHUx8WoyTyYDnK6H9xcanu964BS+XPvcWH6AftCX9Pi79diqUiK3IU8e9MJPvnAxEieR8bhito25OUL20LyAW1+rkH86Qdv7f3PVccXCoTYiYYKJKUOURrail+/rylVkAIagVoSs1IwMzENPQ+spDNHN8GAZiSEjQcJF/XGIqQPsEF4pvu4o6pQ+PKX1TybL04by+zgANEf4l73tCWGwpedtTuq+BkdyiPwFOVcOM3UmmfZ9XmvxkFEOQHHzkGotwjH4F93A6wIdB2+ez+UGQJVPfSAZuSh4I9R1pYLVSNibg0ubEXghkmaKtg== 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: Bu4zilGiJj7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U/9WViTUD/qKnQFjzwp2aq4l3BIgXEJ+EuKhNsyA5qaNe27B2WygdJpJpEtyZZfx2O1Bx0m+ekSPEx9EKIwTz2yfdG7c7C97wZ95Djgg2Zi63SgHn78FsFPU9qqv0S+lQrvyUKLihz2B4e0+gDrwHUx6zY6R8SJvnPB1TMIWqhmiv1dDDfMwVWGjtZfKyGLiHCIwklTYlisgngAB5oBkGwe0ZDkM2BoXdxabNRqeUJ+XJAHLlbWdLpMjoAG0g0MrTNhOE5cdJdO7wOatSnRQrke8XTHQoGl6zYDj0nNXnelcE5DupWlaNfxjWBGCfrR3FVrCNSoZlc7SFM3Y6kACrUx+WE87IMfZqkIAVPkmnsTUKA0UPhz68JyBYm/LXYAehzezryZ66Tsfi1nM06mEu6AXRsZX4kqmdVPTUIiUQCDvQcaEM1pw1k+tXEhxOnztJqQph++rLGKg3hJ7I8UCJx60hH41mUhmH7mEYgy6AJx8EBkreZNq5yBNumdKEIoO+M X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 212fe276-cfdf-4b74-e51a-08dcc2ac2466 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:12:58.2173 (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: Dwwb3G51+82J10z76BTirFgM1JhILaggEJi9++PPuwOOnBA8vY3qgIRzkQWGhZzD8JwbffoRJHqg7UDFkKhTgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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 22 13:12:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773369 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012016.outbound.protection.outlook.com [52.101.66.16]) (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 330361C9ECE for ; Thu, 22 Aug 2024 13:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332385; cv=fail; b=GkdALx3ioReBhgqQfKCZMVgp3o/bZQepYeHL5cRJvXUdWPhc5mdDiJuJKHisVR4Ms8HTR/rTerCzAz3gvqO/uR7MKvA8tpgTnNtuEonMGkuzv2yyeE1WKCP1kK5oQil9AmXNNzTdyeUSWuk0iNH0qIMfQ2cOeU9SNu4Dh7MlRXY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332385; c=relaxed/simple; bh=Pzu+gROpzRbssfrGnlhWMqASjJFJFEjMo3gTgOVB/ok=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=KYwxBdAzSW4SBw+695w//tsX7Iik3hpg3zw8J3W7dVjbum6RDg1WW2GbgkWuxovzAopFFYW41GP6Dc45o/JUjwpc67jTlorLHAjXW3TOtiFp0Y6V+wLpTKPDSGtv2fQHDVUvZZE9oroBP/uI/bXCImW/p+64KumVhxBFyoc7X80= 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=ceSlgEIQ; arc=fail smtp.client-ip=52.101.66.16 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="ceSlgEIQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fPrkSnwq/Xy1iOGmr57mlnBw/DYHRZjc6Vn1ISrmfpeoRanXrGjZnTgJ7xzhbroENNAIkCnUkUF7bY7kblkECmrqS7oPvrtNfRCugsOIT7eGfosS2/1ORtVom5Mvywrc9e7CyiBylvT2yA571OrLvOnLjiK4DTs5paY3E/69MDlj5VlLVpm4IpndSeWNOJzoscQZQPjlrYYt09YG1d0ChkxGzvSb2uYIGpL7ztjI5aiCk5U4DMPeGbuUxXASx2yOUwa7TfEVLtOR14B5eiCk7C0LZkBKGuu8QQD29ZblZYCht8iGjdjsK6EMgjTmh0lUF8O+jx54Pl5NeHLgV7eyeQ== 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=qhBzSSL9wmUTTtz9FjbN+6Y9iZK4awAibEXFr8MZDy1msNqsjCS6yn13sKwEfO22o2DK3MnhIp0mFDFbraboj/HGIXJuAajx+1Mk1Q0rERdVruCorqc0WQHIoCOarOkMbhlPy481ikwhGH9/n8+3QxwFi07s2XelVbrvstLSPoTdJ5O6fn23CbxMeXnZ+gs9z8m0Ei9IaCA/0eofK55iU0tGGFjEcMug4dLN7qh1ITJR7xNNyt87T4YUZ1ZAJN3fwo8GvPXrMUp47tdMEvbPnCMBsemmt0EqD1EfJ7hAtPPwOhLoLYnHlTxNXdsobp4zxUcbRSHDQUPiC+h25E1hLA== 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=ceSlgEIQbkp1yeNmJxBcav18jYra+fgqTURS54msLnjToy8ZEy+XC/TzLZXg5lSKN+RBFb7PNOH8GyYIgE8Pr4Q6SnkYCUM/9kU3wAp3D8wUt4QW4d3EpE2XPXhq9rDyj7Mwi/cf/udGTTgjWR9eFu9Ynm1jwF3vg2bK/wwiPrC1ICg5zJ5Wu6+RFK+f+OrFdGF4rASy03ApBqU3QoEMiD7jvds0/z7+bk7hKpT0QjIhzmsH0yzUhImIqV7wRWZry9DNr5JBzeaPCcq2BL9KFs3GVOW2l60bjcBfke3Uff7/PoiPB/Bhkl8OefDbjKZnnxAMdVLj9ZT06b/lCUgLfg== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:13:00 +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; Thu, 22 Aug 2024 13:12:59 +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, 22 Aug 2024 16:12:28 +0300 Message-Id: <20240822131232.531952-5-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: ec801d10-684e-4470-6130-08dcc2ac2566 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: Flsajj+XIKxmjXvfkLLSfiZ1nCf5QTwmR9h0VWCtriSckenFd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bXf6vDyimXe+++HyNVQsCQqbau9FXUSyjU7CUbB4XdTu3pQSF+y7bIWc842ros/Cn3lgxqJkU/7QDZO+lT9FxC9u8tdtrcIbJuWdp0+6/eGfdyLpk/bTQwOpCXS3Kc7w5P3g0BpWwkiuWVP/5Na88hqqp5/HnSt0vvkZAAVCdOlWY3+/PX9XtDDi2hxphE8GZ6pCRNuz51FiXaF1sUNUfIJVIb2/P5GIScV28DJug4zOaMfnplrMYBh9FRnX4znRyQNeg3xY8rpJtQACVQe3EcaQkBgAkA5gSQvhVUumjEmW2LfGAWaQ== 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: 80Nm5zFlT0Co7GTkNam/ur9pfdM3Tti9RXfucHf2HAPyCymy5NJhh9FzHMm845qTCfeHxLRoaLwEr3ZZO7D1bXOx2XGS8sCgc8aoXq3ydKvfinjrCWRjl47w4HSgxn6sVoFLqJjgCpdBVfecdQdK+oeyKQ6NhPs/VEllts73qUd/3vP86k5ilei1Xgu+jqLpXr2TZairwDPmh21416y6ErH4FtY9+DLdphxMmR24/2wQ4VBsyJAv+83jnUAMhTaveMn/t0fNYnlD06frtE+S661Fr67HmwPfQQf2sedwXgDNONoZi/UHj/zbwiTXidDYgx7m3+tjNoB6sdqyk/jk9lxW2odFoBJ+Bh/Qsu+b+Ln7Q6Kd1iV1T49FPE7+y50z2SywlGGerSVwyXdln1UnIJ22dh6aZ7/hFLHvmN+Fz7zyljWz/PB4chEFzy4K0BFeRqnUiB4/kUNqrppCMb1vs6AFjA3i47CN3LPyUFsBOYdQZmm4xIy1/TwrMFGDcjtv71zVLXadmFm/J6ODytME0vaELCVORlk91zuRnLqnZOKZ+OShFbicu8eisGR/ngE/U7TIGUXASuyIUKAZjY2uRkVFsk7k3y4WScPp+MQyhpIconMHNz91DLimtX0MS/gkBlJoTtOxmONHuY339vjnUeWME8ITFyhe2wzCkissnyF94VG96hPPRmv1hRjTcfMOIUas1xamSKehjRpVezasLhJ7+GawKfPq0/nU0wZkY0tE9HhT7fTuKX4nwm1SUtufzPJljBF67gWptInpA62s/iNVCGdgrlQ5WvFP9p0kBTCuU8G7U12gfyet2KXwqHLglxU5VqlqXNmm5JRjEArtG+R1thqVqAF1JBcDwPpngZUhVAl6Rnc95wPAoRMvF6H/Hq5ZsRU3oTCNtxer4Gz8dtObekibkyWgTx77SGWGzzVI4HX9iKOCqAKi7AK8QJsU4VtT+eouPsHJH6ks+I0Iv/2N1hLu8/RrbMKcXmVGenoJ5ym/giuJeVur7Gze3790NNmJ2PnIX6GfonQYaUiiXc2i1vi5Tx8YvSRoE1F2sEgUBMw4fUc8LhEk2EJcHFX2QoJjrpuCnkFZcK54LWzJgsz1R2p7+Wsmvw+6xbOT99efC4VuBgybUkdxd8E3DHp6tF5UOxTMjnmtr3OB+InflmEJekMjEWt2h8ucUyzk9gPabqBZCNarzdpVB4gtU6xA5J5RSTUTzOLUqlOq7xfb01fzfZP6wnZCo8Vx4JLklWwKrv4jwCcjtky0uGsQmSy99RmCuspTCEGmwTrc9zssADItubXfk8lABVII+osY6Z8J0eL37yjuacy945In6uBqplbbCW9ObbogH3f1k89iOAMF9WMZ/8oZZquhAdmleJL0knH/gRF95Ugeh98+lxpYR2HrLC492RjGUWMwiYoy90RnBjpkTJCmU5ImpAN1briyNt4zvs5ekQY/vq9ICUEGsx0ePpag/X/XdMsVv5NgEkWnwCw19xJR259nSVdY+1tdtVoIQPQpodTlPy9gmfXR4Tv8FX7zyQGiBZVuRA9homgq/dg3/84/k7JTdYzH8UM5ShZLkyT/LECfa4kDsmFR X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec801d10-684e-4470-6130-08dcc2ac2566 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:12:59.9013 (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: svRS6qqC0xxBEVfKKeH3USn2mOe7YSQ220wRMoEhVu7AhDQZDJC63IzJuhnN0aIQaaa1A41LZtSvukk5K84DAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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 22 13:12:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773370 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012016.outbound.protection.outlook.com [52.101.66.16]) (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 3BD7F1C9ECF for ; Thu, 22 Aug 2024 13:13:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332388; cv=fail; b=ErbFsHMcxv3hexEoLkOjo/QekHT4eMgWsmp56vwTEh73ts3MExObyNra+G6eoSqS93WECFVNotsJeOLsPLxZlETLG1gWAjNM/WL1Evg5Pv06oD3MA8fbs24Gy627iTfem+sollv6O3dggJSaFzt/2TbQqD6740Pp5VR7xqvaO/s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332388; c=relaxed/simple; bh=kVnrkynjB0RwXkt9+ekJSFGmiJTCkqkdP8ubjuKdzzg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=gGAp9vcq4knRrTXpfFqQ2EQer62szLLJjA1DoupkyAPXs1HeVMdEvC783W/kU5xDi9i3JAO2B2ZG3rFqza1KxRjV98OQHVQbE3JCmoWxMV3CsVBRTDT8sQdyCoJWJLIZUxSKKWKvAAYSI4Y6pkqhiklb7Ah0zheYAcf3x3gifTE= 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=QKCxh9Fw; arc=fail smtp.client-ip=52.101.66.16 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="QKCxh9Fw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xMYsmipzCrhm/NMtXY1UVGmUodJnFJntGFdZox4ZkYrv8BRLHVPKrCI7AdVLk7RzOuCf22KsKzbjo/m3SiBIZyoFAJ9CLIwtLocwvMtkXPXQe1it4VtjIdqZhsf/dz0qMazCuwyVATZn/EzfSCB66Z3ZVudjOvO9G6uVzLQpBaUms4zSv3U6WxSWMKpTj7PC0pEAqDzYakPrtbm7PBPh2HasE7ZVcE067DLakWwDfClr38zLHTwkCsulk/ohbzjxWfQ86lvhVsY8nGJ+I68QkY72m3IutNCNzhFLgkKvHQQsST1oDd2ziaoHnIMX+uQit8Tt04ss0BMd8Z5ksvdxsA== 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=KqE/IPHEDIbrXygXz6QAshj+H4TXsKSM3WAs4vElr/EPCcfcBxFkG3VrLpIrZOha9sTXBjOYmml1Ey9wCaq9iQHsfsQMcB4veEtOrPCx09sdrMoBklzm5bWrj0HRMCZB9igo8AC4XGjdBkAhkC2JjlbGyCIrZOBTX3wVcMqH0GEe9GSGTUybeZAMx/q0Sj96D13P0oX6IOY0hHfrbX+WhE8a5oItcC/NjllrMs48VS1fW/bfOk1MvFvWiakuNKHgAtXSwRkHwW2Nz/AbyZUlw9OZBrV2YVxx+spDaLjfyprZ/KuGsfZy57xTOgpsuWvFd+cJ1zFqQMSKZNe5tA1Slw== 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=QKCxh9FwQIhUoNklkfs5H4dKthzdsaWIiSzmSd/Cwp/HEIY2J1CD4hB9+IC+Wf4vfq8uy+XsfJIWa5y6hsKxnWCof9QWXdS7fXAixPweDEdCXU9IWPto6cFIYygnk54K9K3xwYbLnZf8SXcIcHeTJ5GaxBFERqbht3+rb7xxSxsDO+DYYgcqWegjnLRu+2vQ69UTdzvozCMQ6WI9/FVxUTKnmueKR6ywXodwH3cpWG+gbxCZln+9WHP44z2aUfgttK3c7ydMebxDyX/Yg37alqjsE+XVXhk2OS5udOffYSW/bWfwuTQFym1hs40mNZUMM0t0LtFtbaS59LvyJQJO5Q== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:13:01 +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; Thu, 22 Aug 2024 13:13:01 +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, 22 Aug 2024 16:12:29 +0300 Message-Id: <20240822131232.531952-6-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: 02ec0b91-75d4-4eb1-249a-08dcc2ac263f 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: KEDbEppjvjVjdinTCgtCjLY9RDGqe7cps/vk4TCH9FF8YnyerM1svJnHjZ5VK9LjxEk882/SeFDpx8iFE+SiqFmfOIkI5JFrHTxM6zk41hqj2PDkBtcaDdTC0x+GqHgtFD/C3Or/ljCFpwGQmtayoBKvRzOCz8baDQU02S/f6OXdfZj+Ubf5RfUErDqVHNwO4ZCjM9dGEQWrYOxnMzW78+xxuBH6fvGX6Tsu+bYzEC8+D5LBt/Yx/Sc8U10jZsJkKNGl0ZoXxelE1WwtFpVNSTRJj9j15nZ3aUWMgjz+DSpJ6Zq+uabYc01TWoE3TEoTmAT3kOANZ9FX4rFUEa5g6nsYxm7RqVMR05M3dqa0UkGfPpQzGAUtqIkrppZQ2MSfh8Yq/30aq7LjLuUJeA0Zhy2oETonzf3+PInUnvSw03hrbg/BO3iHrspayZWjaAP08efO2nX/ctnxCDWnKBtLhgpCl+mk+IDwC2WPEjGNqIbSPl47sffyuMdCOvSni3SIeZvNCskyHxbq+JliUPt27F6BRQNz7plcMxPMwZgCo/q3rp7eWyYtk+45LPY6Z5vP3+Y6+oct5A1+h6F996RDM0Sxs+eTZlXOPCdYnp8JHJtymqajdNaKPa71X2Hzte7V+gzktlvZiU/Gncap1hx1btrdTk8FR4SXBJXzHmN+FSKzyYA/NEdJqMJLMrU456eIb2Byb3D4pbkXGxlwy/Wke89yyxSyWTHxhQfXlXfI5r+osAo+TtDiGOEKED9hR3aNzvRAFOfQjnvLrcJK52+ganVBR0sOspqLR/PkmKsQFGVX1DqipP71Xh7xerews0DcHcO+fvhTeV/KzV/sQY3bC1bWOoSzy6VVcc8NUDjLMWJPSy8VRyQPh7xn97Fv6TGBQPWuFaJuaBekoShyS6RMYTWf/vZ8+irmJd67OL3MP3V48MmpXj4wByNAnYS9O5xZc9Bh6OLKmlp421sz7SFiYQNezZuHSMpUvx4a0iLKh97PI3ENcenLsSd7v490cEjJiPCkRdblPVLRByLe0kXa7QPc7dzOtlkjQEZvnMrW8pUF/Svcc0x7Awfe+ur/4/KUGDx75oow9lKFjxDb87tHInBxXgxMsbYNze3gFQ50H3580p8LsIZltwBsgVwZ05ETs7o/5NLnLRH6MIRLLM0NXb24Snp4R2OljQzUyumnYuIIdWiPkX99F5D6rnu3+/0V/5mDnR98losndiHh+Yhq2Gv1NI+9TNvBqH+mCte0nqxRKm5FAUeILvNle58wriBcfVWcoDKPkgWVPP8ypUI1wEPN1RKWSc2OAMwg4qpVaMOIjFZE5D4iDgg8UOAYjKhb9PO3wXQRYYlkyHEDKjpvmjoh8TyB/Zr25nbkDeYOeytr5oB1Zy2kK54UvKQJcpWb57aavkb0jmUUCVVLsnwGww== 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: wbTqWSOt1W56dW7aDaDtqOq+6gAFg9SeKsfKy7RbV76ElbD8gFOSi/9gAbT4p2EKeAMZFiF9BMoM8PV7IrpcHvCrU4RXkaLavoySz0BlYWy67cAOcuQoXK0BdlFL4gChHaoxjcOmejms5RGEVsKcnPJ3jNxDLrtmAkDZe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P5J0u7RlnuEiRODpbQJoZBOID5UVlaL+V9sqLJSe/WYy4xjbAV2XOaM6wT5sL+VO8aHtGfmMo8h1I77IFmy1gasoUC/n0Ahx6KYKfVmsZRFxYVFQfqQZNdIiNG+E03B0XX1A18NNP/8Q3S/+qiDHMNc7qXhLmtEr+jUYWxuqgbrFvaoFBkdrYQMZdsRdTigcT3lFn3tffdLPPVVGRvaQ9FbCT7EF51ZPr1NmOJVqqeaeNa7SJ9IzwVuruPcbHZPY9BYBrspn1vYQ7m59/bEeXX/resnILWw9t0lSEjczt6Jlte42ZjdybDbxOVqhhRESLMXFkmXrhL0bVBQK2U/ciQsgiGkN X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02ec0b91-75d4-4eb1-249a-08dcc2ac263f X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:13:01.3060 (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: +h3JWopbWG7k/GrdSONZmBEwDe1xQdW9aaBl4RuSKOzAuFTsuqFO+BgXQ9hrEa5za5EUEBHWHLiL0q9u/r82hA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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 22 13:12:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773371 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012016.outbound.protection.outlook.com [52.101.66.16]) (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 6ED561CB302 for ; Thu, 22 Aug 2024 13:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332390; cv=fail; b=BzguJmW+CWMlinmZMHK4k0j4OTIHzGP+b2w4/y6wPpZ6L7zxkrz1yXZBdsypPFn0hbOOFUmEJbg+2In6f30EVQvQGF9m09TXzMMEbFvjZ2qHViGJ0DEW5Z6pXXvhayj0jezXV8DcnyxaZtDFEKZC3ebOItThmu8wTwUJVieY1GU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332390; c=relaxed/simple; bh=cBh8JA3exI/pu4B6FF0fELAZEPkTKtmCGbNWIFp9sWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=JdVY8mhIdCxpUWTqahBhHNgICdnaFmIppKHqV0jiSKcwkpa9pYUA9v9XxjUqwxSW+0aSrioh1nALbAU3RA2HNXc24EjJb0R9QjkLNLYDAGhtWsO5lpBc0AfSxKymP0zMcaZBA2v71KMjxwLKLJxaRCATSLr1hzzO+OXTzeDiXOQ= 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=a/Tq9gNc; arc=fail smtp.client-ip=52.101.66.16 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="a/Tq9gNc" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mkUOWuPB9sUMie89gzn+KgL8xdOlIjtlqPSEcH8cGLZJipHZa8o86faWquxpOdYIsxfZdM+z2POMzykyIe2+BA/MJiyUvUi5XiEz1DTW3NZ3a08jGLsHzN3ipGyUstywLzKS+rFS7HNWiBmKIOIvXgDCdIRtrR+xw+6HITg5rZjSx4+ZB8iTTpookjKxpMDfVsM6zkxspxox3NfRZimSuk66unJ3HHKIa+FbnL5RbV8+4huh61E0upQIM89dSbdfmqIGXKMjIBmBFBmqjcV4TZ1/Nchd0FLMg16tvyHqc0fDnQS15B2NRYWWDgm/M3Jir70SK5gGqzMV/uUx5zkP3w== 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=FbWH6cTNZH7xDZKQGBe8AdzbjdP3UmZIUzJ7bhdTAOtlu3fLW0BQ6qGKf8bkCuBG/zCVBqhBQwbYLH26zI+llkkQt4CvZoV+WmGnl+XLeDQdKpyzw4knJEFlPB0z7SBIqM/IV2oAb6FFd6hguMZWoL1Gy6t7FvrQN5F2qnDTtibpFvJfqT0FBCfnDYcywIEyFq9xErQSbsw/j60qHZy5nEgH2I76XpTG2Rtkf5D7o85KthxoTf1k/eFT+8PAy4qA9bN/Q84x27DRbGuQJ9VI/d4vDide883Zo0mKmtHlSQKx0DwGN64Fi1CtFfIUj8yqlzdEYwvfYnpwoVhDWvW/dA== 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=a/Tq9gNcyhfkeO3WOgyOK/y7HsShJ7rwJGAHI8VIhq8sDuI5dXdxSmKK31AyiyBWgkeDtLs5t7DOYfMRkXEF58VOmkqaaF1J8ZQ7BaTGcnWFsHHabCDINzd+6vb6mZMeZwvWKSd1v3OASD6wqy1d27ig5AYV1zg8d23Z7xmP/9bGl33zRstZpSqH9ubfty6nQjbgi2guwD2j5BJcIPPR2/SzcIp0yCmw4XooHVNbpLb8uSqG3G/WOM1nLsiAg20IAoFJc0uLHwR8jVQQCMgLNlnovynOBt5iW6ezfSODWa6Hq4DxK+6kBYJVdaIvLINVFvz4NDEIQLejygDNWR+6rA== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:13:02 +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; Thu, 22 Aug 2024 13:13:02 +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, 22 Aug 2024 16:12:30 +0300 Message-Id: <20240822131232.531952-7-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: 0dd9bae8-71a8-4eb8-add2-08dcc2ac271c 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: ed3iKo8I7xGV9Ny+QpIm3HYpvw/VAFcH3j+ttqAYvkcUWKytxrNxGrvf3f1n2XrZPJVKLaP/rQGQ32zEboOWwknHYH8T2o6S620F2fZ04rixw8aKOsAjIOl+2Hxy8oFf0xVMg/F5QpuOk8nUplR3VFUH8gbXbDieYUsDahgmu7bm1RmTSCblXhyyDRtvecUAg7b5Uk4SQP5FuFPPjprr3jbY6OxCj1rOr9P5+IH51z6E/ZxLqM+Yg/eePIOd4guivHe+YpBdBbXiyGStJ2WzQyLY6uJ/vTijlJO4FWQFZ1+uIZqVs9hnCQKqMBXPEADqDir7hpUN0r5vDBr7Xy+oVFhA9II2lnc8QGa9g0J5VeCt0xXlwktKD7KWEeCeeJeRVXrvqy8qjbWiVI/WY0rWjpYsFcOENq6rj+bdcrNamFNQWpJgB3zrE2sU33gAiCeJlCYrNWuyici5pYwVxTGkmGvgWVtVoepsWNI/6S9OIm8McxYJsihdY/dWln85iLos5zH48DE6cmnZu0kOkSdofxtiBcv72pxskVIFeNMigME5RbLtPaBlsjA5+8zqEqI1DfKdi0+AW141VaQqnGNeoM0duN66zRW5XI02eLgiZ+pB7oT6IreKsoFqALvuJ0Vmy9M+5iELaHtTx6S8eqIqJWzXzicDBgiK4e8Ab9NuwLeNIig/cNM9ZEOtJFXncmIFLFwjCctfSXxLToFnXwLCiyuiHq4jGMoPU4cjNC4KHRhL82zdDjbFw/RQYl3fENb+PNrEcqLgLjLkfdWgMK8y3aX8I42rhvAihwU11WSyLCiDZjCFuAjzqvz6b2nGnX6j2P4xJNb7Q/Lvp83KO5kaLcFlU9bNfm+PSx4Ncl3ogZ2YoHMs1RW1YX8MGAnryt7nVquYZ4vOfAEHtZIhi5+prJwu02piDJO/PdttzyHWR9iekHl2TWA1N7gmGRosZE5QdiWElsyjX74JB3CBVUhX+rSCkhSnT20VT1M3pmwl3pqobWyntxCn/3x/tP95mAqtHgvCSuYhLSBRT87LtYrueSMdGFLiz5tK/M0gLxbc0Bm8xa9wlWBN/6wHglF18IDJmwXk2Cr2MNSyBIwN+nxROG+yzrY/fwjkk9Hi46wayPIXvJBmufaEa9yHMGdlg2lAf2+fcM6N4lFheGfNKbthrFUEev1okiHlXWME/gNgnRP45wHX0KpM1focFGFab+3dGkC6z7qNhrDjirxlBcZAoVvAZSGphjvgFfiP+/jZu/H7zxIlZzvJvW4w669f/DyAAHu5GWwii9S3yqAnihbf71KvtWDdzaV0eC1V0pS3HKWSOBcg8BImMlAIdCdIrTcdOl9b9A1FQTRQudIJNKZI5iTXvb7fR/dhBOjLnmP/KedR0ejuef30x/n9tlnF3jsCCSF05YeNl4jQa5gcGA28Yw== 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: jlFBCYXUR1K/l33+0TADW28DZxjycolTGhnhKpaVYMLlMBDYDMwALC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p2ObqEC3uYxZRuKiGr0HJ7r7NwAIFrWzj9w8i+004WF8AMdMVZJMp34DhLEqkJOl1Qg+MCP5keTOX2bQ3pdkdJelajSW0YMyRdIr0z2+R0yqW3PCATYqwXiBQFNs56HB/SQZKk2dcr9doisP5d1hFTiTx/7UpD2HQ8CPy5xTkarJnyMQ775HIsHWRQTOJRzuFzSGY/EvoEUIpHDVUfoPsPcE3tBadqitnpZf61VM6GR3Im1LXhwlqnOvcxqBKPud7B9LHglxJu2mRKIYuhJeR8cpJcTTQenGKC2P9MbwrPdFbDPGTRBQPC+3vnks4UafKwy/0xFnevIjBj+NXo2VrWwPkmAliX4aR9v4cuDAWxmqh55JjREXW4t88MGAMBoNzjmL/g/lRYfyJxB755HQ6475LYBJ7DvXXlhErDDW4GYupSD670zhARvBloADjwKo++1GFGX3qY9yDCx6o X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0dd9bae8-71a8-4eb8-add2-08dcc2ac271c X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:13:02.7710 (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: pCzs9i0/H/2CHTGL0J1t41+Xlcfg3SbzNH2cmCvdsl8ARYdpxbHEaI9fMPG3a1gPEG710wiGBppxhH0p3laYPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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 22 13:12:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773372 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012016.outbound.protection.outlook.com [52.101.66.16]) (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 7F5DB1CB128 for ; Thu, 22 Aug 2024 13:13:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332392; cv=fail; b=fOcUxspJtFCdetHTtxoGocKuQJlxiIUkH2kbZ6Ws3KgzRD+aBJNn7wyKMY3EYB6ApU8I2V76CnmYD0BFm5/UTLDlABZiSQ6KhqVnruKKot9DHcwOsXMvLNW3sJ5vLJGaZececAbBqK5cq9VU9AVQYv4bljEGBfgAhZxHkcsIaqQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332392; c=relaxed/simple; bh=rJ3EvRKsw8u5Pplp12/DuA6GIw9y8cdjcM+1ss2FTqc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=O1ui/p0YB9cAMoav5wUVEFx+H4Z50AQ0we5Vf1BTGM8v3mppnRzLeJKOqDFt+38VwNjC5DbPpKaIwv/BrxD0+8Uh8NmlZuaZWxw3jKhrD0qzCmgVsXJI4mfHyy8JE6NtxxQjQ0dkCQrOvEKBLtespzbzW914mlqyOhRUJZYtF9Y= 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=ko89zgTm; arc=fail smtp.client-ip=52.101.66.16 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="ko89zgTm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IdKVauhoZliW6VQ+zMM7AZ0QEJUUH2Xk+WA3f8/IjOnQk5vhQswS55suGH/BDEJGD8Mp60b/3Dli1Nq9PFLKZb7LpUQ5vq6ZbRqlziWwnoHygHiBPeD94wudXzevw+v6xlZIjRj3KDecLmZKem1IAZNLhrrg9qjDwCh0ooSS2eIyQK7VTFxhsPKcwEmiZL51qlN+5xMwQQqofAgJflgK6rCZeZCeyBc9AAWaoHXG8yqVc/g6V8WrlvY+Hgh1JC10QcapahF8+RH8Z1lXeO4IPoUyBGmfK7yriagNCrLiVg85So7IRNPspN0byyj5gpB41YvczHCCKAbaDscgYCsckA== 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=V2luvNT76FjxbfD469Io+R31mjYvXI2XiA+sHc3PF3cSdOiXPDMqZcEjfhm3vv/hU4/cBn13vePMYMGNWT2riMaH1tZTGQeTLtDuZ1MiFeVvjTFnVU+bCASxuSWV76DunMehBg+GN9ber3o4xH/sN4ZFCB8UYM/uuPy7vn1mRE4fu2bFZo7hwYbTYw16RUk6oOaUXv3nyXSZJNYKVQOQVuuz8XTqKo8JEZ4ycMRAUrdM/Q4q17/RvBIuVTcOFGUdcUYnvU3rAr+3a558yVxQqbrXoHMbVA8uGomHdpsxn2vsHXawgDIWHgjZ63QPx4p2JTWjBzoMGmq+wjARa/fztg== 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=ko89zgTmPsK6v0ea1VFJxhfTgHukx2CtD6pe3Vlz2yj4uJ0tdG3Q/+OTYZTpfGxhScD7f4bTKPf7lkQDvfqan1Qq52mK3nP2RE9Brpyw9xuW1P2MaBVTAKgkBorSFaqsV0D/wRstRsffHwqId3ADpncglwRW0lZmd5/OR7EX7k0wdk9+yVfdTIxw4JwUH6pIENtlrgRx4ysi6HNM1sWmYmUk07VluLWUYd1+GkbRsSIEhbPCKeuOAF0SKw05AHBID0U6NUSs9yqvYa5F2DiXoPrr+D2r+lG6s3MpboL0mZDwc6+UiyGKTZrrPSXJxnEg3BoajzsT0nIsbkVvtkfIgQ== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:13:04 +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; Thu, 22 Aug 2024 13:13:04 +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, 22 Aug 2024 16:12:31 +0300 Message-Id: <20240822131232.531952-8-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: 2fb1c1da-c093-404c-6a3e-08dcc2ac27fb 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: 2tjSvpyoBR46Bp8cxOKo0eGAm4TtVH5I+EENaGZBnvykFUEdg+KCB+bLjM6+mrw+rXZjyHZ45Wf9icnMlHoUh54QN2lp8l+oLENUH60gZa4n7S0WJdSW9XVkY15Pe9/xZkVRW2qwwrk7kVxky8u+eDWkNy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+plJvZ8GcSYFWtvYpvmxTjs2sU5xeRTTz0Gm1ouYTZWzgSblbAT2dY1pEDpvtEsBquGhFNJrHwo23GOLk78m5X5utq32sSLMeAWu+pP9z0ryloV35R29llPMEpiz5CAdSOKVlbssLPFTNDS8Ne/kmf8tkYrVYbrHk4QT8LGOVBi4A6tH6AlflxFO/0r/nxQg== 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: ViR/Ht5RxVIGq4gWj30IIRw4DyikuklpJ0YtPvu5KX0tETSmmU9DWhXTD/d+OzscZPW3LCus1g9pwWkbga3pHK3EP10Ljb8WRCw9KlZk8lC6NIj/GvudY/UGZFFLvh5VT/kzVhvSUBMI8ECl8Qs5cBQFJlDsi29DRa+dRa/n/b1r1uzvqkmMRMlUBYXQqkwLKsksiVhAf80wpfJ30UW4A/e1UDhkCl6kG/rqKS41c+IdpInfurQJKMb3M+Wm8CT5+iC0zF+P7wjQ45CVtNYrOw50b9kPeoS+NvMMGyAEaK3uf3Qvy+yGaLBicM40utLBErgmsz7QsmgdRqZTXQ1A1Z0YDFf4k0ybsFRuPj5GsbU5/IHxigtDTcjDoVU7n3mATVu9buKhScM9A7RMaPRc43ASzdHtNCErmjoq7lN7ZSkpVAOSQzZ2Q4NyD5QTQQvA2kuYDXpzGRDpeTvzBomWlihr3xghnMjxXcBTxVt74cMzmc7QDg8XSVFswascS75dCjITwmeEoz0rghXLyVaTFY9xP+bfpWdRmBr7qvu0Jnu5O8MKtbxn2Hkt39SOpHxUEAEMvfAX5GgEIPdWX0XNC3N+gDfd9Td0QpENX77Lflx1FSQWCqW0piAjDt6gdC7udNlj64/XKFrWTWsgJjdlPOdnVyNMLjoNpLtKq776OYU5Z8mXgIIPr4RcLDcMppnXPxJmfyp3XQQlSi95WSNCyfBEQk26lPyXy+PmduHAUMwONI3Sh/tl+2MjtgbisCGJZ//VCVj11TjSlWOVpfUX18oy9i8vxo3uYu7n0gTDcf8nS8VdvlOX5y7zgdW1Of6Arh0k1qIumi2Hzr4FL/bcfmARxc+zQS1uC0KSn7ZweKBWVIuyvieJLVX6CdCZSLChSoGQMcAHsstOJORVhTnhm2z1S/4sNs5XpAwB87B9j/n8pzzVvYV3gp2YkSxLcctCoNoHzzuXLjZn7k1/8+WkvdEfUhOTeb6/B76zvBVIkldTNhvklIpvjfis+DOTvvRzDPEF9jgZ7hw0Ji5Ifvy6iXg/zv3bI6MhWsa69NvqMyK59F8TqkNoCISrSlhhZAjTlyh3r2Z47Wgc00a+wVuMH5Vkr84FYRqxOJ99G98wdwST3KGSOcvYpUiT6B1yknl8ipkMDHk+HFM4PHAEKH5sjTrzULAd3Sbs5P9s3MjVd4wdMozARJplfqEQ0Up6Zz+5ZJZveI8JPq5xwUs1+8jTAWDv1yS7HPFdKHDyTJKBxtpFPBfJAy31hIdmsTyl6m00tHyS538HNaKlgKFl+Ti0IPVJKjlI7ESUnE3oWPDSn442DEQqW3U8uSAG476SDu8BazDxyqmjydJRTpN9RQivtbv+BVdJH9ppxR3ZMhK2gr4Uiwiy7cKABSUhRtMtKbkdbqaNZES3J/DooTDp6uEAK/JgWz34CFn2iCNmAFBJTeDrG2kWmQ6IuKUMtquduA12InO5HLLZynkilqhxrtUZ4KPEH1ZvnDe1wL49OsP1jvZyy7CGtMFCa9g6JqcbTsXB99kqYeMvh/DH9TjAWj5GRiqLMSxyTYnA3W9iWsDH2Ly0eYkTfmS4QnA5YkctWePm X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fb1c1da-c093-404c-6a3e-08dcc2ac27fb X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:13:04.2315 (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: bZMd+NRLdepVVX8keCSc2Lo8dYsUIw5xNaBtOADR7dgEgjtYkCUaiT8Isi9mqveLBcebLvksTp1yWD9rad1oyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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 22 13:12:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 13773373 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012054.outbound.protection.outlook.com [52.101.66.54]) (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 344881C9ECC for ; Thu, 22 Aug 2024 13:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332395; cv=fail; b=unEEbcF08zxde5IV7hwI+uTP0VKu1R7dPV3f4BsFozX8iWS5NTvf41f6RJ3ZHVkhrKN99oBouNL0tiUw3GAwI8nqdc8PAa7DzJHkprQ1pURENVwUMJ4cofKa4+9fujdTplMfY9BW61mue2n+Zo0rgVKTeJRNclvXM8aPKKnTGjo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724332395; c=relaxed/simple; bh=IDLawUEyvX3s1kl+lmawmPvc8zXhR0vZvVKZhYumhdw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=U4mcWyYtgrs4TcUAUwdyJmp2FwWo+vJXEvGYnRmYZWjXzu80g/vItpi6BdFv2DWPW5DKCkeNZD3XAIu5tO1ecLlBnSnGV/J4TIpw6bX6MxlMuT0ivn2vRhvcdatByDFAUeknPxR2fIwQi7MFUQlqGp+hypDDCjHXqi+/ZKvR3vk= 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=Pi2Dv5hT; arc=fail smtp.client-ip=52.101.66.54 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="Pi2Dv5hT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WHstri68lL91+XudmJ5v0kSHvLCGKYE5J0iw7kuEv+55wGHSo/5iqe2vZ9UHIBv8XmaIuiMr51+reS9K8c+Go3fN6kTgjnTugbVma/qLBlEgWNTLRvjkz+OvL1lNf2Doy85xqmAs3i2Z2XMtREL2L6wHfDTJrtwd+fn4wjNAV7cMt6kkN+XHMCiOxM/g+7ieolWfW4AvVsLC+niU8EV+96Tc9IRWApPNp3HDkmhDR+2mWm68/1ijl7CsS6KIiWnDLHmgRfEZLhrUh67YBoxG+1LY+YVF7W0PAs4sma4Fs+Nuu232MuNTNPWyLlr9W9iPvCs2VybYfjEMV8D9LwKkGw== 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=Q3Nwrj/xDMT5ANJ15JU+hEMtx+5DXhX+boW6CJoAboGbo7egdq2eSym0tbJLX4v5nmh8DUVG9E+5MZQW8L2QKQ2DsLsdursQutZTlwnedmChhnhyyrgCHeCEtLrCTdStTF8gA2ooW3vBwFG4I8jrjvNiaIMowe8+FtNb1k/9MCdh97pnXQWcrGz7g+IcnCvhh2pJpQ/V7ZajCOzE9XoUQGE3++KoBmJbSWX+V/xc19rOPp5gAaBEMqQTwlIOtmtvT9rtkIYYFAeRPPA+5D+u8Osqn/kH5fYEaXKGgtSH/Bpkj7hZkDHuD9L9cSy2U8qTq77EUC4DXfuUwUlYh7RUNg== 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=Pi2Dv5hTWHYlPLtiK8kTAXee+1GgSnYWvWSwmAzo8cd01D1Rw+buFfaeR+QRzl2nSx0X2fCucQkOFUoZB+1Q1Wk1+RT6gs14FkhbUGUV7XDl2//uW6I15RUEpVv8+Vlc0B7xCMxE/r0mLmV7AsNqoZklctGyHrmAy1pXIn/xV0G3FqMAbr4vpyv4rR1q8SPciK2Bz5D9RX5iEYcmTuvKmObhpD+/UiZnBkab9UwcVBdNt8N8kBw1+51U+orJwIRxYg64+SRlrDdYT5Bzd+aqSdkusZ4jVLxF2yueCl33jkzV+fM2h7JFoBPFAjzcH1bPwUeZxIBemXSeYEiBxyzt+g== 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 VI0PR04MB10565.eurprd04.prod.outlook.com (2603:10a6:800:25b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Thu, 22 Aug 2024 13:13:05 +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; Thu, 22 Aug 2024 13:13:05 +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, 22 Aug 2024 16:12:32 +0300 Message-Id: <20240822131232.531952-9-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240822131232.531952-1-vlad.pruteanu@nxp.com> References: <20240822131232.531952-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR2P278CA0034.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:47::15) 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_|VI0PR04MB10565:EE_ X-MS-Office365-Filtering-Correlation-Id: 7a663e63-6574-475f-daad-08dcc2ac28da 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: pkEzkIZdfR46L/9UmnKQK+4a1qHV4hqYrpguJjbk1smXtT4ggFicR2ePyGCx8x/C05mrUOxm/2tFgmePECbR13JbyZHWp6zVvvNA5/77IHM3EsP4KH8E1k0EjxPakMn6m6HONaiX55zxTRuQQu4FAYL6nPyPZA2Ck9dKNeNKD84zVDR7iM9rN/bHip+tidK9lKIkwrgwGs0QudhThNVB6w+NH+7Q9uoDPiv29abIm6oUE+jwNe6m+QE2lhwECnWC7ZulpGIi5QZujf4OYVM6BqTaju5nYHtFcZcl3CxPXaFnBQtNIw6xMbHMT0JvNJQheMMRb3GFiHZRWmPia15TWtKpDMWU98mauRsTo6Tcb048UH3dfW1JOj5Ng+YUhzAxtzCxE8ymTkg1xZAupy/o0qBTRkbCRmED0pbdI0kS5eTBs0ohYQWNxwdwc1wd+GuaVJfGOqM8sy2VcN3F1b7pwtjGln8fYj0skt4H/dQ9nlxZ470hHon56X339EH+3jGicZq+zAJQesH2kGfeMsIUOoO57Ecq3NZyqogqCNq74ivfOGulIB8aDMz0xT8aqwWKt1j9yBPromvu5/EyW8cJRGOhEjoMkoQ+cjFyyhPmMCWAdNGuBMw+30QQjH7D8J3OxnhssZGwW667fDBPh7ReULDBK0nh8NWCSK6nQVtpBUBl40jCG1MZ1kTQQjhYAlRM3487D3RWo/DgvzSwJKsKGjTqzDM+nvAfHxGqvIreSAXk2wYDhDZIJ2hpgU3Nd3+By/1H6tMGIIH+NIMIQDCrthCqpLRvFI+M5UN35nOhvpMCHtoTwZ/yeZAAKavf8cgKYOXxvCxMLaqaXbhS3HM3G2s5SMPHPSndgSCDy5vVN7nCgcVVa7dZMVVMf4p6fFh5OwrVfQTqPJixl4astTUagiyeQgABKkQIHZZh0X2NTfpyRaAhggjQoN2WYJzQc1dsDRxAcSxej9pMwNQyvSaDTaPS4IjcdWPxVuzWqQpgJPn8MQL9kiJd/COGoWtzhakoEjRPzYfIGkEPl8HyP1VlHSIbmCFmEoBhGFi2IXS+agav2fCND8namzsFMgHvYS2PrVG0RWXyViitMnZ0yIXuHqaFEPBBh6iTpXKazV0FDeW7DyhFMFlG0D+UGZCJ7eTO98s4tJGZsmMa0jnPw+4h3MrYLuUPz4xgCetIMDI6zsEe8pZX/yXz1KqmaDGwI3+MlCqpAWSlYybrevL5dWEOHrlMRvW3cVpdlSeA8duLV79cgxibdrjFAldnB9BHGkp/faQLRUJB7oQVeGKLxY8NdB8nVJk3e0HNh33HwNfXe98pQP11fOySMlMZ2R+tfhIkxnhMoyuLSLDVZAmQYLdDaPdtSUf8ca6JfxRdR30XvDpgZgeRKzfVCWHzWTYscD1UKic7gBMj2lJNnDWI+AWWGw== 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: U1/nv4aqoZ7+Pya3GH8rHHkuJUok6FTDv11sCJ8N3jH5bvhjtrdym7mpDEj8COtJWm8iYq2czTmQ82FamYDVsW32DsWijKiZuDFFkv3r6cJQDYeVKoFrIDvFcEPOwTRBOx9KZYV/+cNc6DS/JBIB9g/HsqM1z6x5AvYAIUBlMm/PyXoKQLT5+nXa0dKjgbv8bPKA8Dt/XSF1vB+XlH1tsGFwbJ5uD5ibnea/TQLstHQgWZbxhuATduDeYFZQ/fxlse1LLHBa1wmL8Yk/jyAMsOrb3RIYds+YCzFAQJKc/4b07vtuYWxY+zHLmg8YZ0hMHGH6iMc2MaMofA0IjqUjrB76cSrXS83z3v0WmmpU59Owj7t+qbezmwIGFI5XtL5yEhX1gS49sDU13PRRtQQdGp2dOMqZHDR98Y26ge60Mn2dIVpjj8JEfH7nDMqDhnab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vbz2rG4waOtSprK+TLa6HS8Zq9HURLS5J8aYwudMnezX9BYLyGjXK6dTKOds0JVeqs/52/x0uBeP5kafVoWqO8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a663e63-6574-475f-daad-08dcc2ac28da X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2024 13:13:05.7058 (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: jfoHUd6QSUsyMGrEgwPcX9zKItSWZa0Y7iHadTXAhuLKOVYCMyFmw+rW0Zj47LurrY4Zt1CDQFx3nfcsU6ewUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10565 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;