summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-08 11:45:21 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-08 11:45:21 +0000
commit39519245f25c517424d1f2ccbed07777c8e060fa (patch)
treef004c53fe7187cbe51d090b6b0fc094730b768d2
parent0ed4f8572e1b32b4dd57304db14351f0e0c59119 (diff)
Add adapter type for SDIO
-rw-r--r--include/hci.h3
-rw-r--r--src/hci.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/include/hci.h b/include/hci.h
index becbbb06..4cd8c7d9 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -48,12 +48,13 @@ extern "C" {
#define HCI_DEV_RESUME 6
/* HCI device types */
-#define HCI_VHCI 0
+#define HCI_VIRTUAL 0
#define HCI_USB 1
#define HCI_PCCARD 2
#define HCI_UART 3
#define HCI_RS232 4
#define HCI_PCI 5
+#define HCI_SDIO 6
/* HCI device flags */
enum {
diff --git a/src/hci.c b/src/hci.c
index 977c60eb..6fa61831 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -138,8 +138,8 @@ static int hci_str2uint(hci_map *map, char *str, unsigned int *val)
char *hci_dtypetostr(int type)
{
switch (type) {
- case HCI_VHCI:
- return "VHCI";
+ case HCI_VIRTUAL:
+ return "VIRTUAL";
case HCI_USB:
return "USB";
case HCI_PCCARD:
@@ -150,8 +150,10 @@ char *hci_dtypetostr(int type)
return "RS232";
case HCI_PCI:
return "PCI";
+ case HCI_SDIO:
+ return "SDIO";
default:
- return "UKNW";
+ return "UNKNOWN";
}
}