diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-05-17 18:22:01 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-05-18 15:35:49 -0700 |
commit | 1cf5ceeef363cbbf71b1a6f71ef48e01f171988a (patch) | |
tree | d2ea76ad97fdea5970412b8ec5285529dbbf980b /monitor/msft.c | |
parent | 5efc737f49d4cb98c9b1658d68b226ed4f4c74cf (diff) | |
download | bluez-1cf5ceeef363cbbf71b1a6f71ef48e01f171988a.tar.gz |
monitor: Cache connection information
This caches connection information including the device addres so it can
be printed alongside the handle:
> HCI Event: Disconnect Complete (0x05) plen 4
Status: Success (0x00)
Handle: 3585 Address: 68:79:12:XX:XX:XX (OUI 68-79-12)
Reason: Connection Terminated By Local Host (0x16)
Diffstat (limited to 'monitor/msft.c')
-rw-r--r-- | monitor/msft.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monitor/msft.c b/monitor/msft.c index 6de03f3f5..38af6722e 100644 --- a/monitor/msft.c +++ b/monitor/msft.c @@ -219,7 +219,7 @@ static const struct { { } }; -static void msft_cmd(const void *data, uint8_t size) +static void msft_cmd(uint16_t index, const void *data, uint8_t size) { uint8_t code = get_u8(data); const char *code_color, *code_str = NULL; @@ -253,7 +253,7 @@ static void msft_cmd(const void *data, uint8_t size) packet_hexdump(data + 1, size - 1); } -static void msft_rsp(const void *data, uint8_t size) +static void msft_rsp(uint16_t index, const void *data, uint8_t size) { uint8_t status = get_u8(data); uint8_t code = get_u8(data + 1); @@ -299,7 +299,7 @@ const struct vendor_ocf *msft_vendor_ocf(void) return &vendor_ocf_entry; } -static void msft_evt(const void *data, uint8_t size) +static void msft_evt(uint16_t index, const void *data, uint8_t size) { packet_hexdump(data, size); } |