From patchwork Mon Aug 21 12:03:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 715503 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C5F4EE49A6 for ; Mon, 21 Aug 2023 12:04:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234175AbjHUMEb (ORCPT ); Mon, 21 Aug 2023 08:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbjHUMEb (ORCPT ); Mon, 21 Aug 2023 08:04:31 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2072.outbound.protection.outlook.com [40.107.6.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCB8A8 for ; Mon, 21 Aug 2023 05:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WK5EZg7JlKpKGgceZlked9mlNCTB9I3oNNFdkfRQcTaVkKQdZaDOQQw1Khg/WYV+uIka1zpQ3xmjwde7fqclVEE9tsTNAWnlmG+jy48SpUVx00LAwO8gCU85OxJlIbWM+e/JSq8m22qB97Mak6BTrf64jwXSbJHmKrDudSqD25SpBcjPeMu+57AZ71+DagMpSbIzEkPr9YNuaDu6NV6PCLTKj6vQ2+M7J8TdvDZ5HPUcUf7zTNd+eoMdaarGeBN++snFyDo/s/2Uj4KkWzeQVrl5ZxKEUnkm39EhwywDKpDAAvYJ5DrGs+xEUjoyrR0SSnU7VWXLkKg+gAL+4CRWEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=riJ25iSpKLm/XRPFQ6VFdu2HomWcAcjG5c2kQP/vuoc=; b=VTsv+aYCxIgLqwLzq8vjDxR1hbAbqrTiq9DmS96GwefCWNA7K0/3Yo8lMf4zTwAKx7NgIp7Jeh95iYAHAVatJ037GLMKGQcWDOyvQnJei+EGg0YLjuxzsAEm+Ik/zeR1KmTr8rysaw+7nRxDD5EkJCLusZSf4bKDgHExfcLrRDq5v9pPjV5gA/LUjA+QdlQD8GD8EUgKeVb0Lrck0uEXQHxNX85PdwrFSkKGX7xl+ZKFN3L9MqbXa43jhcJGm1MOKo9YDoFR4DlPyQwh1DWEpABkiLl2/yIXSh/FnkbhDa9igwMNzNdd9953u7CATNYbnjGjG4YoHpuRmxtxEj2EXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=riJ25iSpKLm/XRPFQ6VFdu2HomWcAcjG5c2kQP/vuoc=; b=mJj5ODUbVUPAKmT3GdqPWaVMEERjZThYA4u9lUezqFabezEG+syy+45k2EAwS1hacIONgvSEb5ahs9CpTlCLEvP3wQ3AbkjZ2pAAONbNeviC3+lYFcQNbhhn6njtgJoU9ezpb7A/D7h90mhD8N0+x9VFmG1VpuxFM1vxvWwlf6M= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by DU0PR04MB9586.eurprd04.prod.outlook.com (2603:10a6:10:31e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Mon, 21 Aug 2023 12:04:27 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b%7]) with mapi id 15.20.6678.031; Mon, 21 Aug 2023 12:04:27 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, Iulia Tanasescu Subject: [PATCH BlueZ 1/4] lib/mgmt: Add mgmt event for BIGInfo report Date: Mon, 21 Aug 2023 15:03:50 +0300 Message-Id: <20230821120353.28711-2-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230821120353.28711-1-iulia.tanasescu@nxp.com> References: <20230821120353.28711-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P189CA0039.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::16) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|DU0PR04MB9586:EE_ X-MS-Office365-Filtering-Correlation-Id: 21e19deb-1668-4950-dc0c-08dba23ec4ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3Q7dBhSuN0yqDXJICFZo1KeZvJZpefGcAoqwDCMLBH/6yF3oAA7H5UqGe1X/La8HQ5aNlAh04Nk8RoP9Apt7mtrTqEFuSWxPTkDoT+LQug2uAqUcYiLgDy/qQHoPkpwnruoXFk6Qv74qzCh7107k/elTBNy+WCLVYJhXHW9fkOhWjxcdoFvHvms+9SG5Wk3h47UPi5uUbg05mRVuY6Rh6SwBk3qWEHJKeBJO8JI2hcab5uRYkz5IW94MR5am5XkFf4FazEMONL0RZ4HfiUhpcScTT3+cK5GAl8qOuu/Ca7mckLcgdmxb3ypCVLw+np1r6X9WhXX84BYPHG467TVFidm33ZvrNnKjCwrUTLv2ps92Cj8eCqJRv1v6Fl6NlBDyi/AjI9CC1yahZ0nnYAwoU71hjyg7493XUmQHlJUbWueyWqvwh407ZCU7a4Cn/pNKIa7Dh4WyyPy3Ecl6brW6AosdsNBHmmmtw8LOAv8Mu4kURxyB/qyiroMgfzVBVQmvlF36oA4c67E+RRwGhM4wWhdd1FC5NCloYNC67RMmppduN+ivAe9MSmZY6lVTggjdTX/cuyd2xxwwP8L9ME2yaqtZW6GfmBKclwSaPEEHgBJHPQui0HpECi4972Mn7VxD X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8898.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(136003)(366004)(39860400002)(376002)(1800799009)(451199024)(186009)(478600001)(1076003)(6666004)(55236004)(6486002)(6506007)(26005)(52116002)(6512007)(2616005)(4326008)(44832011)(8936002)(5660300002)(8676002)(2906002)(4744005)(316002)(41300700001)(66946007)(66556008)(66476007)(6916009)(38350700002)(38100700002)(36756003)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zNItyfcnnEe91nA747kXJyCz4jydUd+LIBFq4qDb59KPAd9DhGfWH1cVcCPkNKtWqVTBTxPy2esUk+8mYEyzfdkTntRTaXiTPISBNlnY9FEctUFc+ngSUGSgIMWGJnrTTBdNjgrPNmX1TWRNKXQa3NQfJ6NwNw56qXAk8xslEJD7peeqIzeHl1JZJionK6o31eoVdHqxmoUpk6qd7UmJeSKcDiIQ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nWLEAAKn10i52T7m2PNPltY4xkJ0kIlN556H+zcIdsgU2Dd5q0lbC0cBLwCTzugVAlK0KoyewLaCyx1x85uLzmMvHk9vZF8bpn0QhYDqc7HI8NhoVwgc5OhVL81r/Rmg8rCGEcdiYPb7TIWphJdX38rJYcOtxMz+v/0xCANZ6Dn0qT1Pl7xcx5ioVdNoaTHhUsMLHbPVndBEMmZCwTZxODFKlVm+/6IhMzlX3cK8h/G6lch2EjiOhADjxAomAj64meHjV+0ZBTBS68fJ6TVWFcE3NxXfNx8SYwk8tK2xd+KkTyZz4w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21e19deb-1668-4950-dc0c-08dba23ec4ca X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2023 12:04:27.7806 (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: sig0IQn//GLEOCaCpFX8yzLkyoDu5h1v/aZbeGbJCc1rHQ3bCdaoLwudQL3cWyFmo4DGjcEFp6O/tZOQUctOaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9586 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This adds the MGMT_EV_LE_BIG_INFO_ADV_REPORT event. --- lib/mgmt.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/mgmt.h b/lib/mgmt.h index 8f92b7731..f075d435c 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -4,6 +4,7 @@ * * Copyright (C) 2010 Nokia Corporation * Copyright (C) 2010 Marcel Holtmann + * Copyright 2023 NXP * * */ @@ -1092,6 +1093,23 @@ struct mgmt_ev_mesh_pkt_cmplt { uint8_t handle; } __packed; +#define MGMT_EV_LE_BIG_INFO_ADV_REPORT 0x0033 +struct mgmt_ev_le_big_info_adv_report { + uint16_t sync_handle; + uint8_t num_bis; + uint8_t nse; + uint16_t iso_interval; + uint8_t bn; + uint8_t pto; + uint8_t irc; + uint16_t max_pdu; + uint8_t sdu_interval[3]; + uint16_t max_sdu; + uint8_t phy; + uint8_t framing; + uint8_t encryption; +} __packed; + static const char *mgmt_op[] = { "<0x0000>", "Read Version", From patchwork Mon Aug 21 12:03:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 715844 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D66EFEE49AA for ; Mon, 21 Aug 2023 12:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234186AbjHUMEd (ORCPT ); Mon, 21 Aug 2023 08:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbjHUMEc (ORCPT ); Mon, 21 Aug 2023 08:04:32 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2072.outbound.protection.outlook.com [40.107.6.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC19890 for ; Mon, 21 Aug 2023 05:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DOmYuPEaHfLMM1pcgvv2ukJ4faVNuzQ5l4WBjvfZZrTlhVsoLDnzJBIaQdq91zyvWp3R4VX52kujZAlTxPSTSFck9qFrswp5kATOwqxW6td/R3xWc4B8qA0PuYabbmYlPf7pHTGjzTYEPvpmnaxE2wqhEc2Zi0DypDP+gsRPNDSOJkc81RlsHacBhfZZJGyFm/BtdTffFrhNq66Vbt1tVALsqPLuaH8YnU8GA+I4njXCCnIY2jtwT/q3oT9RPGT5nztckMaTQ8udqs0xWctpNWLkY73i0fYQ4j08Fh6X6r+p1diPfzyEx5xFXPuyXQeDQgGtiS/7thAp7tZzpADJmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vwghX3PRVHjCWeOoMTIP7SVIevhN1EwMZcYcAgbARXw=; b=Yt7WSYuR9fOSGANSHIQmC9/QuSuLTIND4GgWdEmor3Bd0DIMev9Lr/paYKEUARg1lW8tTy4BR7k3c8nqDmlxfLSX7fuikvDEc+7drozRh0cmZRsooyva/kbH1MbqkXqKAjzI35gWrpf9jv+gwRSJPUIZLMoQ44h+G/d1V/dwTnpepoNujUDwDih9Fk0LFe7DneL68eQXFY1FvzuFtorMN8Nt4Cl7lT4r0YhMetBg69KmtsZfUp7gNSpSDutv9PsGbzuWB9QFOo6t4ZxtE+p+YVvGeyONxGNa0yyxZid6gtSPAYvRwRaK853wL197ir6y2Vpn3tqoqMuFJGWXcqAVnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vwghX3PRVHjCWeOoMTIP7SVIevhN1EwMZcYcAgbARXw=; b=KJOdLlrADYY9zkTRx6rEmMCuwSpQ77b7nt96QkZ3/HKQW55lej/9OzAOG3jLAwCA5yHADpJIsASZvmW1cHHNCl5ZGtpFnMJGnfDJl3Sn3LBv/tkMgMnwr/QPstJY35w3ZpCARLpxAQmRC55GgMPfSf0NbqFQ1dZsCZjrOnqNqlQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by DU0PR04MB9586.eurprd04.prod.outlook.com (2603:10a6:10:31e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Mon, 21 Aug 2023 12:04:29 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b%7]) with mapi id 15.20.6678.031; Mon, 21 Aug 2023 12:04:29 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, Iulia Tanasescu Subject: [PATCH BlueZ 2/4] monitor: Add decoding support for BIGInfo mgmt event Date: Mon, 21 Aug 2023 15:03:51 +0300 Message-Id: <20230821120353.28711-3-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230821120353.28711-1-iulia.tanasescu@nxp.com> References: <20230821120353.28711-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P189CA0039.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::16) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|DU0PR04MB9586:EE_ X-MS-Office365-Filtering-Correlation-Id: 6392e7af-8d2b-4c2c-c7b7-08dba23ec5a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qZEv7sig3CgRhLwRrm/R3/3xeS2EsNXyg635f8j9vugt80awlia8P2Xc4bB3XxHAEUmJ4yIMMi4DuIZUDy6PwJqubjzv2IASBxcdiNmuZkk81v/9z9O7b0IrKk9Yeg9YS0/LwWI74ko03WI6xW30iTV/SchqcopCEFSRpPh910UqFmeOOhmRwnb8jCtWBFzYh0+Pb7LfN7ok/VltPHMsq8lFg2BTpJ+ZXKRSZHPuYPFnKDg6XZ7GvTpJqXK1OUu3CTGnILFNlwyFXLqPlG5LjvXZzM2We3RvmsoOftGsPG9EFVKz3rK8NS2/WNLTkVZRWKJk/U8tLngCJNKNZGq/KaOmBN6DsJ+Uu03dbl7TkBIKiDsX89niwkABAuOeOKqUWSv5WV4aBWoyXsfLiPrfeZQQ9AC27qKj/dvSVldHlzM8XV3rCRoO2++I82G5nq/pp/CjuT7lIwOKi06iTLtJcg48yY7kvMDASwNvDiR5rC6OrojX1XhZjrl6M7Go71DDwOCg+WuaxclPvTwFnksqrUqavFP2Pmubamtw0HLvTeVgM8vVnuevJtkk401zscyYMz/09zX2BStaI77oVmQMc4Opz6ZaRCVJlR7dWSCs+WuM70O6XMad0lJyuCW/exa9 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8898.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(136003)(366004)(39860400002)(376002)(1800799009)(451199024)(186009)(478600001)(1076003)(6666004)(55236004)(6486002)(6506007)(26005)(52116002)(6512007)(2616005)(4326008)(44832011)(8936002)(83380400001)(5660300002)(8676002)(2906002)(316002)(41300700001)(66946007)(66556008)(66476007)(6916009)(38350700002)(38100700002)(36756003)(86362001); DIR:OUT; SFP:1101; X-MS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38rdlfL4nT1jt2jcM0KpyBhOi4IMS35yrYeNj+TAAxSTVzl3jsdvQ6jqXxuHiqLKnKjtcToDlnNrARp6gb02Wz/LDi052dG5NcbLhHXYXfMi2HpijbhRA7d7tW9kgl6xo0zgPzM7Ru/EpcQ+SugFo8XcjotQykyNDNvTLfY+XzxuCgC/0Zr+ykjNwbtu86qHmssEJ7X8U9OZo6XNzYVpRBlypPsZsx1Qbvxl1DBNeK6nfAjeFFXmG5o67pq8saTZg12NdX0CbbE4tnB/3Uqr8mHyppcUxN/f2Nv1CMBG+AvDdjqKmunH0hbSf3TZpMmqcePSL+tcobk/IaDFdwK+vQ356Qm8jeV/yiaKCn4W5/mZeHEOYMDoLpoETmxRbhhuaFV/J7n48/BBqZw1U9toe7XsK+r1jt26OP7778fauhkqrIBko6W8vjBqgOKqlHs9o6jdk6tZcRkQ8vz4AT3CaetnfOR55uPmiOwIBrPgnoIu99WEhY+9lkLHmhCcHafEGiX02WKjekZfASovB/S7DqE7heSJccAVMb63qW5aJLbOedj0OFXX7ci59sQVRlpSzs0Ld+Q== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6392e7af-8d2b-4c2c-c7b7-08dba23ec5a3 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2023 12:04:29.2256 (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: ky9I3Ht7c+XshHhRGMtm+FZWheu0TDE2kXRAR8OrBaJS0wUdjxJdmoJJ74RhusZ/3fQ/FQFi1YinmUPxh7U3Rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9586 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This adds btmon support for decoding BIGInfo MGMT events. --- monitor/control.c | 25 +++++++++++++++++++++++++ monitor/packet.c | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/monitor/control.c b/monitor/control.c index 009cf1520..b843d076f 100644 --- a/monitor/control.c +++ b/monitor/control.c @@ -5,6 +5,7 @@ * * Copyright (C) 2011-2014 Intel Corporation * Copyright (C) 2002-2010 Marcel Holtmann + * Copyright 2023 NXP * * */ @@ -788,6 +789,27 @@ static void mgmt_advertising_removed(uint16_t len, const void *buf) packet_hexdump(buf, len); } +static void mgmt_big_info_adv_report(uint16_t len, const void *buf) +{ + const struct mgmt_ev_le_big_info_adv_report *ev = buf; + uint16_t sync_handle; + + if (len < sizeof(*ev)) { + printf("* Malformed BIGInfo advertising report control\n"); + return; + } + + sync_handle = le16_to_cpu(ev->sync_handle); + + printf("@ BIGInfo Advertising Report: sync_handle 0x%4.4x num_bis %u " + "encryption %u\n", sync_handle, ev->num_bis, ev->encryption); + + buf += sizeof(*ev); + len -= sizeof(*ev); + + packet_hexdump(buf, len); +} + void control_message(uint16_t opcode, const void *data, uint16_t size) { if (!decode_control) @@ -893,6 +915,9 @@ void control_message(uint16_t opcode, const void *data, uint16_t size) case MGMT_EV_ADVERTISING_REMOVED: mgmt_advertising_removed(size, data); break; + case MGMT_EV_LE_BIG_INFO_ADV_REPORT: + mgmt_big_info_adv_report(size, data); + break; default: printf("* Unknown control (code %d len %d)\n", opcode, size); packet_hexdump(data, size); diff --git a/monitor/packet.c b/monitor/packet.c index 8eae8c9ea..96fc2662e 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -15396,6 +15396,37 @@ static void mgmt_mesh_device_found_evt(const void *data, uint16_t size) print_hex_field("EIR Data", eir_data, size); } +static void mgmt_big_info_adv_report(const void *data, uint16_t size) +{ + uint16_t sync_handle = get_le16(data); + uint8_t num_bis = get_u8(data + 2); + uint8_t nse = get_u8(data + 3); + uint16_t iso_interval = get_le16(data + 4); + uint8_t bn = get_u8(data + 6); + uint8_t pto = get_u8(data + 7); + uint8_t irc = get_u8(data + 8); + uint16_t max_pdu = get_le16(data + 9); + const uint8_t *sdu_interval = data + 11; + uint16_t max_sdu = get_le16(data + 14); + uint8_t phy = get_u8(data + 16); + uint8_t framing = get_u8(data + 17); + uint8_t encryption = get_u8(data + 18); + + print_field("Sync Handle: 0x%4.4x", sync_handle); + print_field("Number BIS: %u", num_bis); + print_field("NSE: %u", nse); + print_slot_125("ISO Interval", iso_interval); + print_field("BN: %u", bn); + print_field("PTO: %u", pto); + print_field("IRC: %u", irc); + print_field("Maximum PDU: %u", max_pdu); + print_usec_interval("SDU Interval", sdu_interval); + print_field("Maximum SDU: %u", max_sdu); + print_le_phy("PHY", phy); + print_framing(framing); + print_field("Encryption: 0x%02x", encryption); +} + static void mgmt_mesh_packet_cmplt_evt(const void *data, uint16_t size) { uint8_t handle = get_u8(data); @@ -15500,6 +15531,8 @@ static const struct mgmt_data mgmt_event_table[] = { mgmt_mesh_device_found_evt, 22, false }, { 0x0032, "Mesh Packet Complete", mgmt_mesh_packet_cmplt_evt, 1, true }, + { 0x0033, "BIGInfo advertising report", + mgmt_big_info_adv_report, 19, false }, { } }; From patchwork Mon Aug 21 12:03:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 715502 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D2C5EE4993 for ; Mon, 21 Aug 2023 12:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234199AbjHUMEd (ORCPT ); Mon, 21 Aug 2023 08:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234184AbjHUMEc (ORCPT ); Mon, 21 Aug 2023 08:04:32 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2072.outbound.protection.outlook.com [40.107.6.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A288A8 for ; Mon, 21 Aug 2023 05:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=It6U9xbwwFLXNdwQr4QXqvrE/DqtED7WqaMbLdnaEfYdI/nqeMAcYHhgFhellrUxbtUMPnFmDkRAnKG9RnQ0AzV8GhPmbQeIOnl1uyacY5fMeG7DVonJWnBiuB96NX6qCbdq+TwBLawFrZGUGraZXloKs4kiArdKif8S39PHLFKyeSwwTGuZaeAdwyUc3I1AG8eqw6Qu7756AYEDjpgD/KKbBXn5/p7TKNw0ZXRswSm7JBgKfGRcznfru38QCeJbx7ktkvXInphRtI/i7oCYqrZBu5Brfitz1SCnidsMH5fqO4iTA48mAxE9G1R2G+W9Q8ujny+54lwTbqliwEulCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YVdet1ZEX/EL8zmNFfMoFY0s/PO9xjuKS4lhh7KmUww=; b=ebBGKYz/k+XGgutG6ta0ojt5Bj7/YfwkoY9feA2c0Zs+2sworQPjngxYTtT5KtpPK9+0ecWLwyNWtL16P6BiR3pNyjUjAd/tbiGQ9vcec18x80T/w2DHqaFepSLG3RWF+3rk2PvUJUnUoj2ryC56PJnSXuZYbeMnMU7W8/+sxLdzteE7sPslzGS1Shu7aVG1OyD0Tzm5hMfyLHq/YxY+RooDw5IyXikHXKsKCP/WC0uW7TLYHZi9I7/8HdQhLmMiLvAbSDE8JGe+5nuC4eSaAFkmQ65tx9JdOFVEu/alDS/m6CBVXJ8Wx/DSicwhXtnuGdlEj5wkQJlh3vo+uJVBKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YVdet1ZEX/EL8zmNFfMoFY0s/PO9xjuKS4lhh7KmUww=; b=Ql+l/FiErZRHiX/1k/qvMZGd4a5v81QUjQqt+If6YaqhXrY8pEJVbTk/bImsRlPRr81rbw4xJ3hpZHr9OlvRF7h0JgoVHTXnZ0nlZTPLPfcjkpvl5NdrrsRQ543/L2pt03sVFaHfWxcz6QereyRuwk5azmYgQHP9DxivMa02inI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by DU0PR04MB9586.eurprd04.prod.outlook.com (2603:10a6:10:31e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Mon, 21 Aug 2023 12:04:30 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b%7]) with mapi id 15.20.6678.031; Mon, 21 Aug 2023 12:04:30 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, Iulia Tanasescu Subject: [PATCH BlueZ 3/4] monitor: Fix decoding issue for hci BIGInfo report Date: Mon, 21 Aug 2023 15:03:52 +0300 Message-Id: <20230821120353.28711-4-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230821120353.28711-1-iulia.tanasescu@nxp.com> References: <20230821120353.28711-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P189CA0039.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::16) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|DU0PR04MB9586:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f20b213-54a1-4a74-03b7-08dba23ec66c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6fOJTdh7pIEC0Ub58H4JYf/Z+0V5otQHifQ4b5opIZRBNwzOc+rgXuEREt+jSCD8XbCzvHLe2CZlSX1po8fqa42/gGsGJbwA/376uaji1fMm3GvyKzfgS39YPpioB76Lb24zZWw9CeSId4EszBkgjhiqs4xtXc4lDuTYjEyf55gL/bpr93Kz+R8sfchH2ZYRQuCjbvS7UpPqfOPTlXs7+ZJX+5AJVU75aYwHXE4e78hyAB/7TwkvXK+tR5miVYGIcYr/J5pzODEf95unPe7LNSKZwz76/0rTu8uGK/DlOhsIF/h8W3dQoCtQo/xu53AL1TiaOGJga52OBh1MjeofqgPIezemev9QIZaY17pfgHsaJBjN/X4AVb6B4ccA0F0h08VstDgYtL+5ifZGWNRf7HEuSG8O+ZGI7D9a6ajSDwCGQ90HTiULVnUsuoNeF5MnYtxBeCqRhy3U8ps5sHCH0S/xcLQn/IiRyALcnd7nHmzjhwJSIBukXuL8j1acy6qiplF9hewne6J7LRIPMiBQBKB0tgfkITLlh7zJ1Mfbry+4VzZR94SpGs4gRRcdG60gfa9AVpHD9dcrESLgzwdDbmV6yeLL16hkB4yjCTdVzaJ1FmhzHuLSpPJfFlQ6UtDC X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8898.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(136003)(366004)(39860400002)(376002)(1800799009)(451199024)(186009)(478600001)(1076003)(6666004)(55236004)(6486002)(6506007)(26005)(52116002)(6512007)(2616005)(4326008)(44832011)(8936002)(83380400001)(5660300002)(8676002)(2906002)(4744005)(316002)(41300700001)(66946007)(66556008)(66476007)(6916009)(38350700002)(38100700002)(36756003)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wX88/Lbu9U+Bl1Pp/AzDaojag4buSFUR9tQ2oeZGbEiyRK+5lCxR/ifABsgWAU+LNc0GKuoerSReocByIW7BBCgvl/E7HEDcbtMi5ncUv+c0IsCU5x3VE1GpzUNM332otHSmD/y4WPMj071ME2V3DnWkqD5Dt60XRyUpH89HCNqS8Q298sViGBlffpAdfX2yu0FXvN4eh2t1r/9/VdlvTVl3sZnRGPXU30cMfijfZD5r6SRzj4c2zdMtAg81SgI+JPGEklB6xQkFQuiOK3nft666ZKbEZSOc4p1ASrzm535qXzAfWyEdtWPrNTbvQJu82WL6336jEL7hasonYcuwlSWDUQyUGotJJMVJ+nXEPECBo0T7h1qpNQjdglvXPMVflvRVoA3oT5RLR3fBfTnlBS3gWPqWhfgjMYSmGMG3X+2QOo4n+RAcyi62rhjURgIxqeWh9g1aftLI/k/NLVgBysceb/Omxi+poyEzFmHIHCGp3n03jODsyStunSFgkB0ZuN/u/MTXnxc6gpjtERwDMyOfnMh82BkhyJ9fg68V1YYkPAyfDVM3WL9PQQPO1zrzuAYB82oNI63vfJ4j8iaua6PKKwIospXaJloL/Jv9EiVRYext0KsVeNfwXaNIbwV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enant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2023 12:04:30.5099 (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: xTDUBoPiVDwjdGfSwg8GSNJW5CD13chUaJOqjVphjtiOBwOrqpyRnHXk0QqjIqlIZtjjuvOkTyOBFmU4IyD+Rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9586 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This fixes the fact that when decoding a BIGInfo hci report, the bn fild is printed two times. --- monitor/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/packet.c b/monitor/packet.c index 96fc2662e..69600e93d 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -11783,7 +11783,7 @@ static void le_big_info_evt(struct timeval *tv, uint16_t index, print_field("NSE: %u", evt->nse); print_slot_125("ISO Interval", evt->iso_interval); print_field("BN: %u", evt->bn); - print_field("PTO: %u", evt->bn); + print_field("PTO: %u", evt->pto); print_field("IRC: %u", evt->irc); print_field("Maximum PDU: %u", evt->max_pdu); print_usec_interval("SDU Interval", evt->sdu_interval); From patchwork Mon Aug 21 12:03:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 715843 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2537BEE4993 for ; Mon, 21 Aug 2023 12:04:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234206AbjHUMEh (ORCPT ); Mon, 21 Aug 2023 08:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbjHUMEg (ORCPT ); Mon, 21 Aug 2023 08:04:36 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2081.outbound.protection.outlook.com [40.107.21.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A20AECE for ; Mon, 21 Aug 2023 05:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IxZ5XEeWc+FExa7GsvMYQEli9FteiM3cUT3rV4prYtxBsu9vRvBJs1MHEkDUCatqEJ93dY7oKBk+2YgU5WnlISje/ONdivYI8xI7EgvIU4qke/0X/nkouwHIynU3m9FvgVmjubZcDm42iHrREFhAJE+AMDWf2j32T0Ak4g7qfif7rseCTeV8BigwCNzyjW8P+qEO/BK5TZG6FYgZOxnW3Zz7pajWX7+EGIRdz+0rPtdFg/vkMAbs91fRb0w32aZANGjOIekIm4qbDqROcbOcbE+nASxebbxrkp7evdt4fpqunlN2rF+yr4PfaLjkcXEX4CDlwfuaAiqyc86hCoQ+Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MzOJoAX4psVU5KfAWHkHcK2bmU+hS0BKkW065wxYZgQ=; b=hFvN1/e+qGUtKBtUrbwzkHCMHzY13LgSyuvtCnxCPeNx8kfc6LdYtJm2SHOLO1WkRsbN6XOusZXh9htYvSJjrREYRbDfBeU9sBsEB7wmSyL81FHvVMQjeL5P+S6xboVtZRzzNOBPRjaA+WfznGNSpvd7XP45KWw0eF0BdPLU2f5sslJe+SR0lecELg/BNWO4N7XVed2plc2RYCTrYCrLo1xs4F9Hl3UDUoJUf+Xde2YPC3Ey6kwFXBSO/Syr6U2UlUYlcMI2UTdh69MmPsa3WxK3Z0HQ9jg4kgy2O15s2SBrG/KMjdPjIb24LkN9ju79ZMbGcc6UddiIqCMl7usnbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MzOJoAX4psVU5KfAWHkHcK2bmU+hS0BKkW065wxYZgQ=; b=TTSLNMckT/ftYI0CGXUBD0rJ5asYpwOMgH12raDYPKOdOSzv4bK7JGVhNjA8ISIpoP6k9AzFbVbVOH1lYJIghFRGzEhheqN8nmQ5wevMzUZbWDu2gFZRIIiNY6HqPq4EzAZjemJ9isIyT5p9aj8PavXaMCMU1ZUfvRHyOq82pe0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by DU0PR04MB9586.eurprd04.prod.outlook.com (2603:10a6:10:31e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Mon, 21 Aug 2023 12:04:32 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::6e75:56f3:fc37:277b%7]) with mapi id 15.20.6678.031; Mon, 21 Aug 2023 12:04:32 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, Iulia Tanasescu Subject: [PATCH BlueZ 4/4] lib: Add sync_handle to bcast QoS Date: Mon, 21 Aug 2023 15:03:53 +0300 Message-Id: <20230821120353.28711-5-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230821120353.28711-1-iulia.tanasescu@nxp.com> References: <20230821120353.28711-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P189CA0039.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::16) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|DU0PR04MB9586:EE_ X-MS-Office365-Filtering-Correlation-Id: 5cf1c076-0daf-4077-8d0a-08dba23ec761 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ixo+y1Gm78lLLv8z5oURUuzfoGN6ppTZha3fXiF4RZ2bIif+XXzRyIglud/NgsJBLsTuuq30lSZ3geDoW3/fJV5tXs/OAePPry66EcduZZGBevZt+tOv5qiQ9oDGc/P4uxx4LTraimprzkyDyBC1htqv/OFeCsnHq4SS1i6iR9gJ+yDR8kBn+dnyXEF6Je3Z+tV3PvJ3WPFf4FjmnT+g+yZVKN390Sa+763p/mBy8tP+U4OrU2YZBrhHoMo1nwr2ESD72uSdRDz8siBvmiiwOPo2QzsB9kH8DQKhSr5wH2qtJ1+K2M//S/4ahJZxnWeNs4VPsi96rUBmIEyoCuFF9j/9MLRf5nRptRRdxcBkDkx9Z65tDGSAiRv0vvNpwSSMgbsqpng37Z+2kjLsHrtYFNx3p3cxfKJQlsIBz6IWWBdDsClHDNA8B3xCdmc3I6902/Yt8As/FGdrhWP6gM9sX4mxbjUvcExdeViK1xdxpjQEDuWTet1ML8rKWaGreHvK29kLQTOa5vQD5R8S+6tcgymR8CNUl+hUx52zx1PdQaySEBEqE6tTrzYA79FjYULm3I73oelFK1W19a9KbTkbX+FRGhZ2yPn4FMuHNK3qPeDB1tIbYRz2eVjptcjFGxmQ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8898.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(136003)(366004)(39860400002)(376002)(1800799009)(451199024)(186009)(478600001)(1076003)(6666004)(55236004)(6486002)(6506007)(26005)(52116002)(6512007)(2616005)(4326008)(44832011)(8936002)(5660300002)(8676002)(2906002)(4744005)(316002)(41300700001)(66946007)(66556008)(66476007)(6916009)(38350700002)(38100700002)(36756003)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +PA/AP18/jT8mhoVCo/bcV5WGMlMJ0JfMQbG73HAdr6Ug2UxXnb9Lnqsei+ijvqmLi/8sbho6ExDwTvE56z/Xu3H0J6iFzuLU+LIanZeRjAywSxGuw/vXwB9nAaV0w3FqUxyBVxffAQXqALqjyoGraGiQGpa7EROksPfHx5Kr5l/hnCaQPlpoA+2XFf1Mr1hu/KzX2t9bcv0b9HvRJxzEyp+dt49Nb4dLS5CJ53DZzjCWMkBRRAI22O51GO6WVMUn9w3RK37YkwMDFrnQsRJOepiDaqSUZ4ehLJhfPqKJgV6zGGa326ZrpzNgebP0D+YLsibbZD5RZrXKpGtASuniJtA+AyFMOJoLvdozA3TjJw7zF4jB/qbqIUmHrt+8c8c4f60rn4m116VVlf74GVwcGFEv3ZNXQV7G/3gKfP7FxZ2X5oGEB9fBIHQ1wI8qbE7HMoZ2/tyaDu3iq3g/l/S8oPpn7a99KWuF7iEEIkgFbiFN075uU0tAzlu9OX8Dresk9h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9fm7uoZP60gwyggbpaQG8GLsg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5cf1c076-0daf-4077-8d0a-08dba23ec761 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2023 12:04:32.1239 (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: rf2mzsUtDHAZ1Ku6/1GW3/xkSFiHceRR5NVQ3m/fZj7fR/4L/KTHLuyCyJTx26oAaKOhvBlA1RuwZFnQB84Zrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9586 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This adds the sync_handle field to the bt_iso_qos struct. --- lib/bluetooth.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bluetooth.h b/lib/bluetooth.h index 1286aa763..f007240f4 100644 --- a/lib/bluetooth.h +++ b/lib/bluetooth.h @@ -187,6 +187,7 @@ struct bt_iso_bcast_qos { uint8_t sync_cte_type; uint8_t mse; uint16_t timeout; + uint16_t sync_handle; }; /* (HCI_MAX_PER_AD_LENGTH - EIR_SERVICE_DATA_LENGTH) */