monitor: Add TX frame number and speed estimation
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 31 Jul 2023 18:26:19 +0000 (11:26 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
commitc10eb3171b81282d87503c8299a061d3c4a8776e
treef8aa7dc37e175d05c08b1e41ae5b175007e4d3c6
parentc09869a373401aa89c817fe7a617398bddf4f334
monitor: Add TX frame number and speed estimation

This adds the frame information while decoding:

> HCI Event: Number of Completed Packets (0x13) plen 5
        Num handles: 1
        Handle: 256 Address: XX:XX:XX:XX:XX:XX
        Count: 1
        #188: len 850 (755 Kb/s)
        Latency: 9 msec (3-21 msec ~6 msec)
        Channel: 68 [PSM 25 mode Basic (0x00)] {chan 4}
        Channel Latency: 9 msec (7-21 msec ~9 msec)

Or the speed estimation while analyzing:

  Found BR-ACL connection with handle 256
        Address: XX:XX:XX:XX:XX:XX
        60 RX packets
        22548 TX packets
        22547 TX completed packets
        3-73 msec (~11 msec) TX Latency
        6-850 octets (~847 octets) TX packet size
        ~568 Kb/s TX transfer speed
monitor/analyze.c
monitor/packet.c
monitor/packet.h