From patchwork Thu Aug 29 09:52:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlad Pruteanu X-Patchwork-Id: 823629 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010035.outbound.protection.outlook.com [52.101.69.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9154518E742 for ; Thu, 29 Aug 2024 09:52:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.35 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925173; cv=fail; b=BBhx+wk5IsCfoVZQmdxA2ioh1LtYcMZfSrsJMyrDB7HOrkU2TqKivxZChSN7+FpEybfWBQkdsQVC+rTjhLknInMQbAW19yDwtreqZP8KRFiXOFlO8zzg7aKJieCQgCufAQ8ePT877EXvQEWb6QEjwfAa8LSoZUSjpOjqPcfHOm0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724925173; c=relaxed/simple; bh=IDLawUEyvX3s1kl+lmawmPvc8zXhR0vZvVKZhYumhdw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=S42FvvRD3EY3X7hLV7cFDTjSJxzRkbsNK/pFd+141BDh2t02+BeZva0s1T3tSu0WJExnSoJ2GMdgUdIdKC/gvo2dNa+QaOFWM1ORfpEnR0/R28PhHRQ1iQI1+gFXjjKZIhJgXHLidrMhNzpwCGAGQJVwSs+K3hGBdZd7I6bnCWs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=RS/m0gID; arc=fail smtp.client-ip=52.101.69.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="RS/m0gID" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NzV81Mv5ME9iniMKCAhLqtrr6/vpX2qus31Aklq7pVn89gKV7kxHXrdzSZiSqE8Ro+vjAL5RCs7VL2YSiZmG9+0VONpAwDdZgnRBBxsTIc3BH7yDkwt+lQGPoexfbZXnsfR2AawFLbuogGd5GAi8NHla8nFekITyaNpKrYWpEu2PZ4YfhHCGA+wQUVzA9iwNaTsy65em8iCzbx6KC7Ye3IUcRO9D1M+7fholwgiRu+lSmqsIyWEMM3bpA27b5P0HC4joiWyEyTXYmCFQYLdadZGGu6GdJhtGTCni321pSG+o6amRKOn1uqbxqiL90QRbRLTPw3UkXj0lgpUbKZBiEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Yi6f/mQOkXTT2HCAmu98ROPUTLGLhJFYiPnzUa3oRGk=; b=CzVs23bfxAEl3Y9CLkPu5HCL0UdZ4anisSK38Ditlcod5K8rjPvq9c4Diofx/XrPBhCFKg0GsKoo4bFYtTb0VWVKDpkZGpM9X/TsIfS8A/5StzCLDxPuBEELL3pzEtgOAV/KsSDn6iTmxfYFMv7i/83gl6SqPD8PBK7BcZ2LHpApGCDQrLc4CT/2Sr6BOEXgoRZfiDJOkG2C4HYIjIw9tyigld9twsLTisVjNm4x0n6sUFaCjAdwhSvh88qlkm7oQ58YuP+c85xgOlPH2syCcben+gZWVz7csA4ZbtJc02N185jsN/Cu5BrcJHzOmWQRCldXkQG/DDu+HOJeUDjKZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yi6f/mQOkXTT2HCAmu98ROPUTLGLhJFYiPnzUa3oRGk=; b=RS/m0gIDYffp5mFUQ31NI208E8FfPlX4Av64Zd8EUyouzo6o8+JKseBMK+H9BNmWOAJzpZqGwiuPttrikfsJ7aKuzeSzcFivX9HitmU+pD491jVIPR7QPb6CkIc4XY2qMj9YnkqT3JLFirOXSMoBomTiV2nxWxcs7mHCQLxxCOOg/JBj5glp8WUrD1GbGAier7Fs6kbow21kZv6YqzybkG7FHV6XMogX2BZviROabbxztvFX2Ztw7hba8EABTtG2RNvwDXmfOaK04O8Jako+hFIxiG4t/nPyvEOWGZO1LEd42ZqyRsXOvI+EvpE/uejg2MYPG7qKWGYYxriBc6WsrQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) by GVXPR04MB10381.eurprd04.prod.outlook.com (2603:10a6:150:1e1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.28; Thu, 29 Aug 2024 09:52:50 +0000 Received: from GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277]) by GV1PR04MB9088.eurprd04.prod.outlook.com ([fe80::8775:dba3:39ac:3277%3]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 09:52:50 +0000 From: Vlad Pruteanu To: linux-bluetooth@vger.kernel.org Cc: mihai-octavian.urzica@nxp.com, iulia.tanasescu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Vlad Pruteanu Subject: [PATCH BlueZ v2 8/8] bap: Refresh qos stored in setup before doing BIG sync Date: Thu, 29 Aug 2024 12:52:06 +0300 Message-Id: <20240829095206.91150-9-vlad.pruteanu@nxp.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240829095206.91150-1-vlad.pruteanu@nxp.com> References: <20240829095206.91150-1-vlad.pruteanu@nxp.com> X-ClientProxiedBy: ZR0P278CA0196.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::22) To GV1PR04MB9088.eurprd04.prod.outlook.com (2603:10a6:150:23::20) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9088:EE_|GVXPR04MB10381:EE_ X-MS-Office365-Filtering-Correlation-Id: ba4d19a6-9692-4ad2-3f07-08dcc81057cb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: ueVibx2bWRcfBEYT0SKGHrW5PRuaDWGELikWUdQHOEUDyr9bKPCn+tQe3Ttt9Bcu0k7tgRtSLg855Hvn4/dNrecLnCkfKjwzF5PV0xY+pKrcbsnW4ugRD9iKSQ2ds874Ae9KWjDI9RglypnqC5+4PYN+mv5Un0Eo3WP3IXIhfU+4mj4gj7ArVE1Dtrw6F5eP5RKhlD+9GJuLi4Wu9p6Zsmc+Vq8VeG637650nXJn5E1MrKhjy5xZyB4ikgZHRXN2Pp0Rj6JiTIlgrb2Ovagvbx97RH1SGU/zFJTJmCYxvZhvHqULajyCK1SB74K+eMHjmvJvftN+2aYl7rw5PegWXHWRSaj7ISGLwlJS3o30ISmVgx3QF0swbRHhVxshDWNqx7sNjyTDzQ576ld0pIcE+QuvfIXPkDXfVA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:GV1PR04MB9088.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(52116014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bj9Q8Iouo0PJOU1KKrCTREcuwQsGGHVMmN2sWvdVEUlw/w1Tg3xFzlID5R+eG//u0xakJrWQzPWi8rUaSHW91aBmV2qZd+cddV76BTfOPWA1BIUlt2TWyE7bT6uhFcN6z2j7tWiIDehT/feZksJjiHcB2paeCwsNLG/3G11+oxFgdOUwIh6eawNQvLBLiW9ul9bNYCkrqnzApD2en0eTH9jF8KuvC9ccqG3eFsg2PHkw4vYtKCOiWVoCp4mYfqogBMKPT5gUUKBL/BqT25wuuTc5QN0MEx6Z9QEASdar3QxjlwHovJbHIbtNA9hecgNH9xuaHjQnDobSbbEXXPkgIYc7rLY/TBqGtUcn/44ENzhUUMDv8A7OZcLFHQ3ROj6chPCg5JFKInSvLITgINeoilOhH2WgSj8N+1UM6E7rAEDxRh8MM6E/8xWEcgBm8DKDkiW6FXIrLP+K56DAMFBcBTM4XIPZYLtyd8WWjq4bPi6blevAw0cqp6hz2Akr3ICD8VjVk1r+EcLXohF0L+qGTK3OXMUbX4JbLHRrbHvmGm8uoZeFe5ArbvFL+NrmxaJ9GR2rAQO7HfcxMbh41gexrpJWODqYppENxXAlbwNWydtHZD85qAmSZ7MAMnH27aI23r6lhL6OmYO2JkSwu3FfwoZpd+gQWDsdwBGxT3qB9BkY26rl08H3DaFBsZn0UTSU0w11VxOrziHNdfZOWVNvp37cHnrSRsoXH5gDedffnHB3CwgQZXeX7OPjlsn/Iztiin3BWCGbzRqdwV5rO/4rTfQrmGnlw/8fewIEWSFDTGcZ5/t7+Bdl2bn6Qh9O7jtsYHpV+gZitQCHw2hCtoxnimeIIq/9WeijbbSvHrkF0WrN0GTPHy4nRLGS4oPS/MABR8mIhlM3yQUqwkLcOqLrNhKic92Z9k1SQto1bHgpU/mbj99RSo7rGLWwJiculBwO66WtugaAwxpLnWVhENJrw5tbGE0xq0vrT6ZV4eS1x2/zYxUqWxMN+rLS0WqvZIhaRPTi56JvIrQxkJXsaA3Bz2wXFg8YDISAw12brG976uiRVxAZViDoDuZoYr/WyitxBzDmg10rKFZwflPPd5n9XgNEW3WfVaJxNBpsSqGBULn4wNeGSoXdr+QQO/CkpHf66iKda1Ywfgp+cO+TR0H9A6IplT2dGzFQbvfONcEmkJZa1OfPdW28HryOjzjSvs6csNOELGq/HS8yDleMmCJTvlcZaJkIsdCyOoIKkERN9XpC+4LSWQUxv4ltPMAvWBlRvqtrMKikJ94aujP8L5bEE688jp56jBeNDtyaxltDqHGRPjGQCZiotjAEl2+l4RUUbYZVeHUvqVCvKyC1NvYaHi0MSACBbbsGm3x1fBSSZbrSYbDBpHtQcF9jWoZHVLd9sCIWU2h7Iof3eAZoBlpAN8kuL0J+vaO5NwQ2FEo8my+Wn3SHL8DMHdN02YeYaPduC/4ZW++jenGky/oYthlBIpee/m48gNElykT6w3Z4H87FhSTuWpwA5mKQ8Ty0gcTaSumIM3wyEwegs3c6GByMTw8f52cuoA9xd7aeUBQdkjsofd7bRxo/mdFUL6islT59 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba4d19a6-9692-4ad2-3f07-08dcc81057cb X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9088.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 09:52:49.9956 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: F1KfdIVahf9fCdLjqOvQo6JkCZ2caQMxW0ScdUU5noyz5xZeDj/VNwkhRJh+Ddbo2e1JhRLZYTo2Z7EL2vZH0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10381 When syncing to an encrypted stream, after setting the broadcast code, the qos values stored in the setup must be refreshed so that they reflect this change. --- profiles/audio/bap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index a2c5a546d..80ed1a7ea 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -3066,6 +3066,8 @@ static void iso_do_big_sync(GIOChannel *io, void *user_data) iso_bc_addr.bc_bis[0] = bis_index; iso_bc_addr.bc_num_bis = 1; + /* Refresh qos stored in setup */ + setup->qos = *bt_bap_stream_get_qos(setup->stream); /* Set the user requested QOS */ memset(&qos, 0, sizeof(qos)); qos.bcast.big = setup->qos.bcast.big;