Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10785548rwp; Fri, 21 Jul 2023 05:07:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHFOgXYFII8beO365MxquHzK+fC1adADMWkmNxMssD5VszqjbXq95NbVvCWea8tIGiPOJSQ X-Received: by 2002:a05:6a20:1057:b0:134:d4d3:f0a7 with SMTP id gt23-20020a056a20105700b00134d4d3f0a7mr1513784pzc.9.1689941223940; Fri, 21 Jul 2023 05:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689941223; cv=none; d=google.com; s=arc-20160816; b=pv5lDUkWwuJJIeKWrSXuNHfzfZ35NV6o9YIErRinkvKk3NZi34Dra7Pq/Fl+akhP/2 GBHLRtHDDzvRm+f4ve98+c6nSD01Yyhp9o1pHAJkQITb2Bh0YlFx2+yOzXPCv8IlYjHa BhlZ3CJM9jHVEAkGfptYjpPC6L5/pI2m7sSf/zxKPaMoyGTNBIiR+J7T2BqrJb60JwmH Y1xUPZjFvHFEpzEaRXKpXe2YdRA6BJzyN9+QLQ0j9LtJoKXgI8MKTUkG2ZMGP5AUotA9 5eWnwZoLx0omRbWTFdAFT7HLsm6ZzVaQRVYM422mwI/7ESK7Vs6CJ7fvw8j5rzJcVfeW IhpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6+l+E6WOqPvLovqraD39twbq8sUliN3bDM6u2bR47Zg=; fh=h17+BUkPRHr2lw0HFkFHFzUM5qc9wHMn/JTuJpN4p7U=; b=GHag3CYpjTFqnwWXjTI7z1sXyF71RokJg9epQWthPTHBOkVpLaVBZBmXgWz3YQTmoS Vqc5duw5Sn5SmaCvEL8zaIl4MZ4OiNHKC7TdZ763l2bHtOt4cplfR+zs9SkMsOKdtwP9 KCcmZMW433BH+v3xQqBJNTIpgaFZthXEyVsgKwHhHuOjaSkYpS7zAoMtiWDwr2I4VSZ2 AAILIAvNekYFPgnwOfqK3g+ohayEm/GHiKTxWV0mB1iFY8yWX5i7PXKgPx9XKW7iTqAT 60mnopWnwibAIrQEokm9pxLsgPmhM9oV2et8QvVyycnf0BXq9qmsOOVGNt/qP7RmV8gB l9/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20221208.gappssmtp.com header.s=20221208 header.b=md+50u6T; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a056a001d0700b0064d56036aeasi2892237pfx.255.2023.07.21.05.06.49; Fri, 21 Jul 2023 05:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20221208.gappssmtp.com header.s=20221208 header.b=md+50u6T; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231400AbjGUMFf (ORCPT + 99 others); Fri, 21 Jul 2023 08:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbjGUMFU (ORCPT ); Fri, 21 Jul 2023 08:05:20 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA48E3A9D for ; Fri, 21 Jul 2023 05:05:00 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b703cbfaf5so27189351fa.1 for ; Fri, 21 Jul 2023 05:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20221208.gappssmtp.com; s=20221208; t=1689941098; x=1690545898; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6+l+E6WOqPvLovqraD39twbq8sUliN3bDM6u2bR47Zg=; b=md+50u6T1mYLLk7/fSuFlsN83lkTCuU9FQMQk5gdKPuIoN8uDkuq7XZKZMQmbxgqmz NNRoafMLZcRwoTWm6qHnFfKL3iG9TNl/cmblGnUn8JyIVxuggiTGKEDVm6kVQV+BlMG6 9cWaFBekAonEj+ij3w5ye4sE9oxPPI3tfUkNyYtChrfiN9aeq28EMc/Axw8AUxZAKhMN uzDqobOCorMfHAutZ0pyhrf1GlBJNrwLFDL0y/aRPy7okPIGQElHCeMmgnzbJ4ZUxfN3 e1IXF4dF5VMCFi6IQ+sXSoY+mMbus609bYSOYuGU6Y6CcGmoLTmsPCSU/FMLmgFddnqI XaTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689941098; x=1690545898; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6+l+E6WOqPvLovqraD39twbq8sUliN3bDM6u2bR47Zg=; b=BEKq1SE+lz/NQ0fR9+XQkv38FjC7sBLBExg+0+wTrtzJuJ7dC6GzISoQXKZIs9M20F aRFdEu/S8BsnDGpHf7pOJSqo1A2ki6UK87bmx90QSVrsCAQBpgtQi5cRelxJ38WpwGj1 ZP+Bm8RjgrBtQ+evK5yuo1l8VeRGZN8cu9kBwKq1zCCLfXkRbKt+9s4dTb+avLf6PV3e w2juKAcBkTOnAYVs6mmdk4Wz9LQQku0nn4SaMWft8wrJO3XoyriYV/FXshiM7H29deZA LflPft2JLf8nP3yisR53ko700S2djEm41pA2Pm3xusjYBtd8V3wNL9geSq5eD7qixCPs 9/LQ== X-Gm-Message-State: ABy/qLYvpRodhvUwNq3EbjTOKdYV+GQ8+r7QE/WqRsbrQdONeMPJK+Hw V9d9YNu8L1f675KgSgCKU5VzhUBgdSlya0ejp8Q= X-Received: by 2002:a2e:8e95:0:b0:2b6:efcf:1463 with SMTP id z21-20020a2e8e95000000b002b6efcf1463mr1305247ljk.6.1689941098226; Fri, 21 Jul 2023 05:04:58 -0700 (PDT) Received: from rymek.localdomain (217.96.247.89.ipv4.supernova.orange.pl. [217.96.247.89]) by smtp.gmail.com with ESMTPSA id z26-20020a2e885a000000b002b6de6deb5asm907977ljj.2.2023.07.21.05.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 05:04:57 -0700 (PDT) From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= To: linux-bluetooth@vger.kernel.org Cc: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Subject: [PATCH BlueZ 4/4] btmon: Make BIG identifier consistent Date: Fri, 21 Jul 2023 14:03:20 +0200 Message-Id: <20230721120320.147496-5-lukasz.rymanowski@codecoup.pl> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230721120320.147496-1-lukasz.rymanowski@codecoup.pl> References: <20230721120320.147496-1-lukasz.rymanowski@codecoup.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Bluetooth spec uses BIG Handle as a BIG identifier. Btmon sometimes use this and sometimes BIG ID. This patch makes code consistent --- monitor/bt.h | 4 ++-- monitor/packet.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monitor/bt.h b/monitor/bt.h index ea24a076e..b60263fa0 100644 --- a/monitor/bt.h +++ b/monitor/bt.h @@ -2789,7 +2789,7 @@ struct bt_hci_bis_test { } __attribute__ ((packed)); struct bt_hci_cmd_le_create_big_test { - uint8_t big_id; + uint8_t big_handle; uint8_t adv_handle; uint8_t num_bis; struct bt_hci_bis_test bis[0]; @@ -3676,7 +3676,7 @@ struct bt_hci_evt_le_big_sync_estabilished { #define BT_HCI_EVT_LE_BIG_SYNC_LOST 0x1e struct bt_hci_evt_le_big_sync_lost { - uint8_t big_id; + uint8_t big_handle; uint8_t reason; } __attribute__ ((packed)); diff --git a/monitor/packet.c b/monitor/packet.c index fd1e9e034..f581a8e72 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -8811,7 +8811,7 @@ static void le_create_big_cmd_test_cmd(uint16_t index, const void *data, { const struct bt_hci_cmd_le_create_big_test *cmd = data; - print_field("BIG ID: 0x%2.2x", cmd->big_id); + print_field("BIG Handle: 0x%2.2x", cmd->big_handle); print_field("Advertising Handle: 0x%2.2x", cmd->adv_handle); print_field("Number of BIS: %u", cmd->num_bis); @@ -11633,7 +11633,7 @@ static void le_big_sync_lost_evt(struct timeval *tv, uint16_t index, { const struct bt_hci_evt_le_big_sync_lost *evt = data; - print_field("BIG ID: 0x%2.2x", evt->big_id); + print_field("BIG Handle: 0x%2.2x", evt->big_handle); print_reason(evt->reason); } -- 2.34.1