monitor: Fix decoding of HCI CIS Established Event
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 20 Jun 2023 22:35:37 +0000 (15:35 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
The ISO Interval is actually using set using 1.25ms slots:

BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 4, Part E
page 2304:

  Time = N * 1.25 ms

monitor/packet.c

index dec10e6..0eff182 100755 (executable)
@@ -11563,7 +11563,7 @@ static void le_cis_established_evt(struct timeval *tv, uint16_t index,
        print_field("Peripheral to Central Flush Timeout: %u", evt->p_ft);
        print_field("Central to Peripheral MTU: %u", le16_to_cpu(evt->c_mtu));
        print_field("Peripheral to Central MTU: %u", le16_to_cpu(evt->p_mtu));
-       print_field("ISO Interval: %u", le16_to_cpu(evt->interval));
+       print_slot_125("ISO Interval", evt->interval);
 }
 
 static void le_req_cis_evt(struct timeval *tv, uint16_t index,