From 443432c491c22597ffd59bdd0a4b01f1723b8863 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rymanowski?= Date: Fri, 21 Jul 2023 14:03:20 +0200 Subject: [PATCH] btmon: Make BIG identifier consistent 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 343d878f..98863a63 100755 --- a/monitor/bt.h +++ b/monitor/bt.h @@ -2788,7 +2788,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]; @@ -3675,7 +3675,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 c6f0e06d..a8d7f58a 100755 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -8805,7 +8805,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); @@ -11639,7 +11639,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