Diff between bc3405aa81f17d2d8c44e9bf4fcf1098e37a34e0 and 4a80373beb3cc6826c9d39b8f60ac1ea62375cf5

Changed Files

File Additions Deletions Status
monitor/packet.c +17 -2 modified

Full Patch

diff --git a/monitor/packet.c b/monitor/packet.c
index 6412af4..7ef0157 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));
 	}
 }