From patchwork Thu Aug 24 10:24:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 716942 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 BFDCCC7113B for ; Thu, 24 Aug 2023 10:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235817AbjHXKYf (ORCPT ); Thu, 24 Aug 2023 06:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbjHXKYb (ORCPT ); Thu, 24 Aug 2023 06:24:31 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2052.outbound.protection.outlook.com [40.107.247.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD501739 for ; Thu, 24 Aug 2023 03:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VKcjQEiInaW1NWgSo2nu/7LL4TFlZHMwpvov3XU7Hsh5qG0LytdbkfjxUZbJ5o/9FgVjseRTUyWoVCByatZQdJIEwYJPcZghTxJTsfGkMesBBJH6BuP/gBZFwefESUVtNrL5nuo64Mco04cNe/pQk2aegMpRVMIB2zzP/Yz/rtPt9CK6gi+oL8KKj7XJMRRWoT1VvUCaO/FoM/WfNRAMg0L7NWzCAnwzRIErUar4IE7I7LjYmKmWaTzIY21gGUlZB+Hyv2MflqOyRKcl6J8UpnVp2RMpbzcJGNcMxNrM21Kb7Htzxzrlg9EOgCA9ToV2/Pcl4hX2TohETXcCyb9R4w== 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=K9oXd0CdR2lxbtDfnHSDTdrtMhKRKKLMwhUa829PXcvtCxcj8Lk2vIG0P8xUUhB5rOjmD9Rv6eiLeaDopSw7tRqublUXtTPQK+YszgV5qwK35FuDueQ6gyj3Zi9EqCymyPc0aArHUwZlObpSWeAvSgDRuep/EIcLiVWolbWvscg3alXU1HHgKNCPkS/JBY30gYV8y+KmFsuPb63yJjl2Xg3eUsqhwoFfY1szpEtn3jf1WNa77LpiH65Da2azdw9eIq7PYmJXMOvr/ZcJu4qG6LjyDiT5H6onKH6ivXiXXZs64uU5Xy4+vskrsGllnqPt5meYIlwYQaxFPYjGzu5D6A== 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=NLfaWT/zqgGyHycc9dnHl+jUVy1/rJIgutsynGq3uoMg3kpRDiqkd8P4EJvd0HIyCVRpkMNxAf260rp8q0u0aHFU0MSihtV1L52iNoNWyHAiIsznXTnS4aNUmMXPaiuxa8c7BtGA3DakjkrxRv8qUHwdfZXG+ls/8yDUTXPadRg= 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 AS8PR04MB8625.eurprd04.prod.outlook.com (2603:10a6:20b:428::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Thu, 24 Aug 2023 10:24: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.6699.027; Thu, 24 Aug 2023 10:24: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: Thu, 24 Aug 2023 13:24:04 +0300 Message-Id: <20230824102407.25883-2-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824102407.25883-1-iulia.tanasescu@nxp.com> References: <20230824102407.25883-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P192CA0050.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::12) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AS8PR04MB8625:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c18889e-f756-407d-60c4-08dba48c4b43 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: heV772/9W9P/jQSo5WxSITs2L0/tQD9S8klQSS+Dp2p9PzdhugGfoCcTIEF/nxNsl/R3WlgeqI792RtjM7ja7a1HCZ3DGHddbiEOjDCnGb0H8lnbYuxRG3Kvf6GsXszbrc8LXkJWXQ8rPvhX2bmW105wLLxuRe6Ae4sdMquV1VsmqpvK+yb5Wg0Dx+A3vlryqW0BkbU+q5y9drTMPL/+s78zlEeiD6ttE86L9JDvQyRjptJW9TEHnJTdf2ZjeGI33EQP4KafPhBDKgv08W+MhEoxNgrGWWhvvELWLp62Munol2NbuFpNEWg8ZmJ7oBBUBFzg0oXGaJ88hsgATb+c2lghvwzGAo9Vr7gotHOZu3ONDNKpSI7mnoUKseW6jdKpm/zhvPlPHxTeibLwqN3aohsk4AKq+PkkMzAZNRoPuzcrREgjZSQI/GPlH6v6QxA3EXBOZCjiHbae6Ij4OeKwnoOUDPhF4B5ZJUxLZF5tZ5Dw+q0yS2jBlFw7cmAA1D7ZQPdSp7fXmlCD6IXp17+ypahmMbwXNjsO4e20YAB6+CzQeHjdQWcgryIMeAFNpSIMB5od69zcfe5+dkUCNEhhXxiSlJZn3vNcshVb7C8HWDwbOke77gHs2hI8eaVkPkSi 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)(396003)(136003)(346002)(376002)(366004)(39860400002)(451199024)(186009)(1800799009)(66476007)(66556008)(66946007)(316002)(6916009)(478600001)(38350700002)(26005)(44832011)(38100700002)(6666004)(41300700001)(52116002)(55236004)(86362001)(6486002)(2906002)(6506007)(6512007)(4326008)(8676002)(8936002)(1076003)(2616005)(5660300002)(4744005)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: deVHprFci2mr8R2pTSx8bSgYZ8wcg/gUu5T6jk010xiqS/OdbyLnmNuTFyMqio8T+8TLRoIr/NfUfx1KYREqFxWn9HnLv1Rn/DffEItdC6/Z0gsftNRgh83mS/lNeII3mNOk5dQetqh6AsHcJcHe3zCSUinczDfxG6vWeLrQdhKRLigWANkbTsvTKoCKKx/YhMegR5b2JYxoI++O/oNg0T5Q/hqYDPi8a9jy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qzBFZfzpmachRhkDecHnM2wDFy3FqO8wLO+NyO7MeuLeCkWzF5bIP+o6QEN0Q8PjkmGEOGXMljncvBT6H53pTh8Q7JpuZ/tFsOW71G58b4+76IjS+5Lwb5tW9tNurNCMx9NWOldea/s6/4qTenpHxHIFheDjg1mXLh/862p5ZtQB+pO0tbqT1R8W+BDJ61Q/wX40ivRM/m0aQbK8ickc1fypCxFoWQGUTqT6A+N1p97l25xZgRtXuvIEYXttmAhKsDaE3HdoCHsVZLcwrKRJFueIf3juXc5qdEXD7734P4NjvM5XHg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c18889e-f756-407d-60c4-08dba48c4b43 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2023 10:24:27.0103 (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: wrq9v7KOTY88un46UqBn5KC7+ZJvmTK8YuI+oOiJLFzcFHakF6Fei1gi6VV7Am4aZcZpca+L4J7grlP6HZzyHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8625 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 Thu Aug 24 10:24:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 716618 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 F0043C71145 for ; Thu, 24 Aug 2023 10:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235867AbjHXKYf (ORCPT ); Thu, 24 Aug 2023 06:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234609AbjHXKYc (ORCPT ); Thu, 24 Aug 2023 06:24:32 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2052.outbound.protection.outlook.com [40.107.247.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38A9B1996 for ; Thu, 24 Aug 2023 03:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ne+0aS/Qs2eJZ4Da83OJsIfC6yyMWoJ0DuXtsQInN2Mjg/7n9e3dGunGGdpS32P/nhlc25pcVGp0yy7Oez3wzbuH69iUJjhZXPUAdfyx+6CPysMZi9eTsc3USGSMELniveOEFICMgQKEHyw5ii53sx8aXJaOHpIAyOUAU5ZUAlWiuY/vvbbNirS4PA2Bf3vJjRVr9OwEMuSvvBVWI8DDdzYk5gBaiqJveO9kUBo71aaopm7xB3Wf+lsE1RsmQh5mo31jhN0H+6ePPFdEj/YLrk50AQieZoNWzjnFUP6UqJauSk+EGx0Ne2wfzp5W0cWmWPZvBeORbL967NvlLHRLnA== 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=HGD4reBvPt92np+d9PChj15TmQ1m/0+JS/nb1mytYwvJ8Dq0NA1+pvH1ko7ZcYy9P65ZU27CGpdljAJ7yunZDR7KRORRJq8RuD1RxS+Uf6UfmK28NqVe6YhZ7gt2B1xheKcWFUJ10o5rXpyiK0OGNYCpb9WJzruVoCYEzo7wxlhKTkhhEfiJEI2sHgNqtg4rA2gVQjmXR+KY3MlFTkGm4V/4mL536NwC9qDjK8egCH4jKltaSdC1cv5a7kfL+GFlG+1LPf4OYckl00LOdpVGgMzJlpSfgiiNDOQ/P2s2/Z69gZ+KaHh7MrciM9WHMj7MZ1NvMhKQs1KfvqhuAq/ZdQ== 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=Xnhtl2Il8FK3gPm2Z7LKtHSU16oLJKpYHEs3sO6OWJ2xeyctInYwxwgf5ZpMRQo6RQmCacG1YmOxg6ZPYspctBsNsXh01aQ5B9J5bq9aszw63CZGpC2TBx0vDgsC3GMkSj1FyqmRwxorehtp7vzjgYEeZws2gYSblBw2dJVGe38= 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 AS8PR04MB8625.eurprd04.prod.outlook.com (2603:10a6:20b:428::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Thu, 24 Aug 2023 10:24:28 +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.6699.027; Thu, 24 Aug 2023 10:24:28 +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: Thu, 24 Aug 2023 13:24:05 +0300 Message-Id: <20230824102407.25883-3-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824102407.25883-1-iulia.tanasescu@nxp.com> References: <20230824102407.25883-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P192CA0050.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::12) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AS8PR04MB8625:EE_ X-MS-Office365-Filtering-Correlation-Id: ce4b117f-b430-4b94-84cd-08dba48c4c36 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P0KYTv9ekViyBRJpptmrbApdSBVU7mcg361AHHcvA4AusfzCJKtXFwCgOMvojhBD+Y6i+1tqCMgiefkLE+ptVK+PyjDLyV1BeJ3ib9D+37d6WvKqtdVUzQlLoL2RTX336ByivHQLAmBJfuustQ/XT7RrlYWtikUOdonpT6xCCKaV81GEOi9nQa4sjaZJSdRebO1OIXBBK5G262ojrG4DwCfgVHhdZrqyC+3WS7tXUSEtvN+I/PoI0pTei1Wk5F3gMRuSDLh5qM04PGwTXXhjPrWWAoEA4b7GDoOL4gsn6ZxBAwWvVJamgVB0QlfkdwWFXSIbDrZ6COM/xXe3PmkZ/RHfLzc46xRze27hj5XTHtST7wQez5PHww8IaMQxpxAw4x3gU+VrMk0Y9kiPh+fUEcZ8z+wUPsamb8fjbXhccQ5o78LXBRU2VP8UjhaCXs7Ow/VV1dx0kO10NgYkN7E72yD2VueF2uI4SBhz2EIKmePCSn/zeB6wyIoYULUg4rGhJZ30uOc7OISCq3pJsgNqBDOQRuj0gUZ9Ex62SRa3VfTEt7QhwsGiV3xciZFUxK/32sjmbQtkPpueYukAzr1lJ0kWh4dFEEWBHQsmXy6vLT3ENTGGz86bS0KtIyV4OSI9 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)(396003)(136003)(346002)(376002)(366004)(39860400002)(451199024)(186009)(1800799009)(66476007)(66556008)(66946007)(316002)(6916009)(478600001)(38350700002)(26005)(44832011)(38100700002)(6666004)(41300700001)(52116002)(55236004)(86362001)(6486002)(2906002)(6506007)(6512007)(4326008)(8676002)(8936002)(1076003)(2616005)(5660300002)(83380400001)(36756003); DIR:OUT; SFP:1101; X-MS-Exch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kzfk7iLDx/9smyktqzZ4oPh5WuuWcimlcKMtZ/0IuBarbT/vZ4nUP8jDHFd/BxzGpXoc/0/1fYKZdosjPCzRcuV2MiOyvU1WipQbEX8iEYlzcZzqD2p9RblK0XsezpmqvcKH86/LBPDPftEEp2iEAgTKBZagobmDh37UBLMLVK/6yGl2N0/QG9e5mYjGk2jqA24iHXcrmN5LEymO7lJqX19nFfcuCsfzjmvYLgyFol02V155ceXLQv4umB7qfaLJrBWbgokNiYCMrbhsLMawkQY0XXJiyF5tfv9Gu1HGD3Cz8G3rlSCuilRAGpyAz1OU4NVnZfWhv4C9tp0mgccGdfMzYiajEWutnZ9bjS+aFDcGrhJjQKSGlWkjGbExrrSku/byIpSUVYnpHsdN+suQERFLd+yMi28T8itde3+dA8MWyuV9TK6L9oW1t/RfEo7egPgia7nl/xJJ8SZ5Pi5jVUXNaX3j1lfxd9c6xV6ZBKzbHnxdjKuEmQlCSomrr64EYjw4d/PJiYDvSmUy7QmoJzFW6jNeg8KUNCg91YM304E1guURKB04DBuJ2jwD/GS36IBmitX3ZKQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce4b117f-b430-4b94-84cd-08dba48c4c36 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2023 10:24:28.5333 (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: qlbEE+vZUOFbRUZzc5yUFlQAkXJLuLKn3gNiTVY2OxZmysAyACuss8Y6HfGSvzEQzjfWWY71gZVbiZT0x9x2bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8625 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 Thu Aug 24 10:24:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 716941 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 E0396C3DA6F for ; Thu, 24 Aug 2023 10:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236773AbjHXKYg (ORCPT ); Thu, 24 Aug 2023 06:24:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234788AbjHXKYd (ORCPT ); Thu, 24 Aug 2023 06:24:33 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2052.outbound.protection.outlook.com [40.107.247.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A6EE198D for ; Thu, 24 Aug 2023 03:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TkudNtPlbx7uP94rwRuVHs7gkC5WQLTL/YmpJHPAWUPykQ4+MANOmpocdb3rWUy2Pc8YHGtQnroCZ9vwziKgMRfa0JZwzIG3LhWCOmV/eyEfAIHj0CvoprQtAhDs90xcUVCewRK3AixglS+bdnL8MB3XxdusjKNu93BnJy6HALslNLGjvHP0d50sMRLPMYnxd7NsHYZBBGtNhE7TO6DXzS9+pBGKVdsU+Mh8Kco9vCkVeoaiSO4NapTfKjb3Ain9oe85dZheC/ksL2fWFHiDTd9wUa5dPMoXWz5jvE7GkT3jdG1RA0riodpvOF7XD58BPKOOK+pnLsHK8uCqINn6VA== 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=nRJ2ZXLK2JCHo09CkxOPHqrnpJeB++XeH45Z9Ig+BQnEtuOTyfXQLmHOCGJ5JWmBPAyPDr9klUf/HOySAOYkDi5Xgp9oTZJIwh8OpyRDwX7k/JsfjMFTFGm+8NEpmO8W6bjgwpZY7JFjQuOzDZsTbAsTS+GtI1ZOo2riZ8mw0f8uvJ1NlPJTQGYM3OqavC2/Piii6GqYbPpOhUBqAN6abQKs1lXcBAAykwFSEZJu9UXLnzTwO4fWlO93b41Tzs/pbWE3Xhg4C0vz+eWX7x41JOzekz/ziqhgyY2G3211yQJsY+EOo0Z+qeuk0k5LdHFL2vcPdvAFLbH30Kr3AljaiQ== 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=EEyGZDhAZQw5JE8h91n1j15t7yV92y+hSesJlZpVnx6RDWSiskd57QUE37xMVlOLyUr1FSwFZUz7+Ur46PYPRzQ89MMd02OOa0yUHOELa//Yb/+/SAByaItidpvOW9kZNlVl/FBUF+JSF1oKjxGnQ6rw8Yd+ECKEsRtLZmFcTTY= 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 AS8PR04MB8625.eurprd04.prod.outlook.com (2603:10a6:20b:428::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Thu, 24 Aug 2023 10:24: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.6699.027; Thu, 24 Aug 2023 10:24: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: Thu, 24 Aug 2023 13:24:06 +0300 Message-Id: <20230824102407.25883-4-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824102407.25883-1-iulia.tanasescu@nxp.com> References: <20230824102407.25883-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P192CA0050.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::12) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AS8PR04MB8625:EE_ X-MS-Office365-Filtering-Correlation-Id: 10ec9090-68fd-4088-d291-08dba48c4d11 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zXOWTArn9d3uBbFNlmey4MYqvZrDg6w7Y1/y7Cp2VNEGWBaoRHt4Pl++xiR9X8JSijcqvBCk2yrSmv2BokFbQ0q+fMfFbYn2zzuIBO/XtUr+DOh7XCks4vDR2rA6zjtzKH9sL2zA/IdhVsTq6nsq+zLkFccjNrfPXPBrEaONopIsxlmaTZs/0aAyomSr0m1aER6A97g4fItawdOuYtxCbQ23U9OVZCCPJjuQUjg3HuyMbynCWB1RzeGFWZzB2myaqqEXA8w5txP7hI9oFWSYWhvd9xw2GY/PLXUXkEqgK/FwGIIyqTaYyQwQoy0SMtJhIETLPxVGVPtyUnghSprNVkDymMi2kDf4z4RLYlOYbn9q6LvQI6qVwg3EdzvVB8PJEafkUucTPcIzhu70BFFyuOdXLM3ifItvEHJHuyoUcPzivqZI3iZEumNKDcYMGWdTYSK8DbnMvidXaRMol3ypcAA194hAjYYFrmtLP4a0/rYeRZpsOpmZoAF471k4KguT0DC/btdCW2U+ZDeNrzZrAKnqEj/ZOe1RV0eamRTaiox+zyqyE8aNJESEVy88HGTggBVyBZGmpgohqkQydsjJ1PTFWhzEpZydBOxvGEdJq/Yz81n1VnZHy/QY5+Zbrjnn 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)(396003)(136003)(346002)(376002)(366004)(39860400002)(451199024)(186009)(1800799009)(66476007)(66556008)(66946007)(316002)(6916009)(478600001)(38350700002)(26005)(44832011)(38100700002)(6666004)(41300700001)(52116002)(55236004)(86362001)(6486002)(2906002)(6506007)(6512007)(4326008)(8676002)(8936002)(1076003)(2616005)(5660300002)(83380400001)(4744005)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /KLsK/0LD32sfAcHJ4bDTkL0uZ1cAbCBjEa6R33/IwPr1M76xRAdDuD55ScISvtk5RwI7sMI7XaI26GPoprSSbhFhwvrZ8RnhjxUwapl6RLo2q6r89+WsGTn9sQn8APRCOdRAByqwjEA3HxQBtg89C6nH5IsKUmKTNF+XloZtLW/AXqgReOZ9z2fDAHkF5hC8XgRDyEOUr3x/MXLV2epEDSvKzc+K5XtVGM+DEGeEwAgoZWPHqD7CfuJOvpzyktYSHFgrImy7rxGiK5VOKzq3IoCq4FCgrMmMlDj31QWDVQuoFxxh5tDIvuYrNi2Opz6bYfGErumxq1o9/ibsDHi0lK54JImOEaLj3AbGcsLwV7cvbXyKE9mVvvRSSpGKAxB7VQEKCFMg47NvS3QsoxhvqzLE4KgRyz/TtHiLdVErJv1CMfYmrfvjwS02r9WoaJbpkwzl2d+3I0lT2bhqImqmMoigPEY/0w3hYsoj47KFz8BN9MS320134YpK5vipR1oezuMjsWDGwGki0aeptaCq2DzTBv6KDphJ25nFc2GNqNcOhawoxvDouRtnwI0Vt/G/a74akTE1SKc5Z5H1y07vblecPvECFdsNGXrvwlfPAG1MSyIIjpPQtW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exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2023 10:24:29.9848 (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: qTri904uf0fEPpdUjL91oc8TRtxlVaB6SDnUZPpEu4EMlgdYBa3JRgrjcz9XQgI+sC8Xblba92RkxrZCknT0bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8625 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 Thu Aug 24 10:24:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 716940 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 DF4F5C3DA6F for ; Thu, 24 Aug 2023 10:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236850AbjHXKZG (ORCPT ); Thu, 24 Aug 2023 06:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbjHXKYf (ORCPT ); Thu, 24 Aug 2023 06:24:35 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2043.outbound.protection.outlook.com [40.107.247.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D96121739 for ; Thu, 24 Aug 2023 03:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=beZTH0ZSMlr7jLonmAL0rAD+9D9V7i8BW3hlgKtYsPcdhpnSI/jKsDmpYIxyz4s+nCTituNVqbzEhaZpeGvMyk3XjZaIzFrVltKsEtpsCd25aJ8+tSnrbt/Efn6g5nusxoHealxxoXxUTKCnBpqDz80cqxEwV9bHfluub5Arb3pq0HPAgb5aH3D1mlfSa/VyuJF0vmMaOpJKvNHS1/+e2mIMNpsvGe7Bx3W107ieD2JH3sayvbMLxcfi8X0VIi5g5m9aB+6jEevQFxx/gTGyyu0E0/Cgz1vRclaOMYQs3Dzi255lcoZtIC3cPdZY58SB3csqdUhsIZhyesko6bXD+g== 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=bWyPVfOJbCPS9SoFF4AV3byrWhjndA+0K43u9JUFt5Gfm5rkGBjh/H1/oE/Jcbmo4K0b15MnNQKvzm2Y1h2HpqEviE9Pi4rZgCA9248On2XGKR5i4EZY1zcohhdPPtMYhssyRNHogTmLmHJitBGbC5BNToppJhJookaJ2sZTzQhbDj8TTiFFx10pQYe0jDdS69jmGzsQcULQrEl/ssMWtbURYDIqFIkDtaDp+ih/w7oYFEUN8H/uVr8tLwXWBzGix2SYYrMbn8UgfNizg43zT3aMwS7pyUWc/rBoC6fvlmD4jtdG9FkLnUi9okgIjtB+xoGLmpSE6xEAVgAafc0QUw== 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=abb9bpT2Hb7mVVTfFSu8NXA3Xz0urzYcqFKggtzRN75irKclyWSOvFvs7M//6NlzpLV3NFQ55Y0EP/DyiyiEr42Ulbwgjxo9sJqfy9SlShwPU3hJWPSCBYYDqCyu6ttO877UYjGetAwbmV3jWhIX9lwj7Kd+40ngBO9mY3EHlTk= 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 AS8PR04MB8625.eurprd04.prod.outlook.com (2603:10a6:20b:428::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.27; Thu, 24 Aug 2023 10:24:31 +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.6699.027; Thu, 24 Aug 2023 10:24:31 +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: Thu, 24 Aug 2023 13:24:07 +0300 Message-Id: <20230824102407.25883-5-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824102407.25883-1-iulia.tanasescu@nxp.com> References: <20230824102407.25883-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P192CA0050.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::12) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|AS8PR04MB8625:EE_ X-MS-Office365-Filtering-Correlation-Id: f6429ad1-7ef5-40bb-67d2-08dba48c4e39 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6XV6knEcMxPCVUg+bwky+UX6uDlG2IAi99fFW3RpGmIIflPY0RyaxleTGe97N5R7GQ9SHj1fRFDq1kW2zCh7Eq6crx9WLD5Tf1DDJgatP34bVINqEPXFSb15Rj9ySWRvZ3RYE/raIB8Mi6TLAl7JfdY5dAy0kQ87urZSf+SJ8KcGiuTe7OKZgBb6rQiU0s2/P2eMiEiNfyqaekCd/OJZXey+zQtohyjNk4LzpuBgrjGfubNuaUIKTHvAhSUEqwFMmvKdoJaLcdbVbSz+b+0b32W7cIQL/GuzrVYfqvID8dKQpT8QQNd9ZQwlbK8ZoOR2D6ttkMs54mp1wdLXoxSMBlhfYAcRpAGQFRw7gt2XDWmLTH15EfAn5vAhb8snj4W4hu57HtGK3UJ7ZjGgLt5Bv2VCN5M9VM/RqmccD/y/cHqDwvmCaU8MmdV+5eY6dJ5ZzrO6haYqa3nv6IW7zTyonv9Iy/9pUlg2UlCj1hhhgaVSrUr/9dtrL0RbMNT2p7Rv+N+QyHqs+pTViokXgB0RrghJHYIUkj0NxJ22kWAq5Wa2rpWdbwkm9/ME80svTvnGkppCkgXgzoxwcI3s3pLBbZ0PH1w0hnU+7JsYM1G7HZAfmqdChUEvEjyL0H3RENQH 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)(396003)(136003)(346002)(376002)(366004)(39860400002)(451199024)(186009)(1800799009)(66476007)(66556008)(66946007)(316002)(6916009)(478600001)(38350700002)(26005)(44832011)(38100700002)(6666004)(41300700001)(52116002)(55236004)(86362001)(6486002)(2906002)(6506007)(6512007)(4326008)(8676002)(8936002)(1076003)(2616005)(5660300002)(4744005)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ShNe3dE0aGaB6TD1dkmpYv4SrVDmkKItilMZnJcaV5z1iq5lyx53YFC/XbmbHEYo9nZENNfjcLe5MZhYLejy9id0lUoGu2lD6JR1bVytC9ajm+L2SaWJX+SvFzbVQBbXfCrxZ/Hjy1Yy9i+ILxVGgeCrATpRSJOJLtGimxf65RALhtQBC/k+7kybYTI/xwDqZ6ZIcxP/PI/5qO4u4Yi8XHKTWkSq5PBCuVq1P4HCizKjZeGaDFokPiSkt7Gbj0868+/7ENeZeSnQHZbzQ/8y69VoRWDSIHc3UZat1hZAJ3PMI9URLNRJbyJmn9UM785TPpp7NySUDcjbiN1AtuZuGqb1Q9kWbHnxcBB6iEF70mymjmBLiUxGMLcpXT9/zNSPaGiiSinKAJOyWvA5jJacLO2GsOtptMWp9f0Ap2FlE5/vzaZ7RXF0D97p7Fmnm4prunMcOGGoI+3zUhQESTJiz5lCa0/3ZWQUdqjIVHZ4yUWaP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zBFjKxEtM8BsT0ebBf72uzEAZpgyNJcprWWsCzntDrZ9XKY36w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f6429ad1-7ef5-40bb-67d2-08dba48c4e39 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2023 10:24:31.9122 (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: Zoj9QmYJkb9UMtWfYgY60f07s7mH0XuMKP0f7er3/YNU7mq7Ifdwkou5tHkq0zO/Y07n6LTCoRJi95TI+/ZIow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8625 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) */