From 4a80373beb3cc6826c9d39b8f60ac1ea62375cf5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 1 Sep 2016 18:08:38 +0200 Subject: [PATCH] monitor: Decode extended controller type information --- monitor/packet.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/monitor/packet.c b/monitor/packet.c index 6412af443..7ef0157d3 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -10580,9 +10580,24 @@ static void mgmt_read_ext_index_list_rsp(const void *data, uint16_t size) uint16_t index = get_le16(data + 2 + (i * 4)); uint8_t type = get_u8(data + 4 + (i * 4)); uint8_t bus = get_u8(data + 5 + (i * 4)); + const char *str; + + switch (type) { + case 0x00: + str = "Primary"; + break; + case 0x01: + str = "Unconfigured"; + break; + case 0x02: + str = "AMP"; + break; + default: + str = "Reserved"; + break; + } - print_field(" hci%u - type 0x%2.2x - bus 0x%2.2x", - index, type, bus); + print_field(" hci%u (%s,%s)", index, str, hci_bustostr(bus)); } } -- 2.47.3