Diff between 76295afb7f4e29b6d6d8e4a528e5eb05037a09f5 and bfb16c94ad8dd1314415cddf2ffe2b9b8df5d0f4

Changed Files

File Additions Deletions Status
lib/hci.c +4 -0 modified
lib/hci.h +2 -0 modified
src/shared/btsnoop.h +2 -0 modified

Full Patch

diff --git a/lib/hci.c b/lib/hci.c
index c25be9e..c339085 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -156,6 +156,10 @@ char *hci_bustostr(int bus)
 		return "PCI";
 	case HCI_SDIO:
 		return "SDIO";
+	case HCI_SPI:
+		return "SPI";
+	case HCI_I2C:
+		return "I2C";
 	default:
 		return "UNKNOWN";
 	}
diff --git a/lib/hci.h b/lib/hci.h
index 397caf2..d1c7b97 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -55,6 +55,8 @@ extern "C" {
 #define HCI_RS232	4
 #define HCI_PCI		5
 #define HCI_SDIO	6
+#define HCI_SPI		7
+#define HCI_I2C		8
 
 /* HCI controller types */
 #define HCI_BREDR	0x00
diff --git a/src/shared/btsnoop.h b/src/shared/btsnoop.h
index d94dbae..06a1c1b 100644
--- a/src/shared/btsnoop.h
+++ b/src/shared/btsnoop.h
@@ -62,6 +62,8 @@
 #define BTSNOOP_BUS_RS232	4
 #define BTSNOOP_BUS_PCI		5
 #define BTSNOOP_BUS_SDIO	6
+#define BTSNOOP_BUS_SPI		7
+#define BTSNOOP_BUS_I2C		8
 
 struct btsnoop_opcode_new_index {
 	uint8_t  type;