summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2016-07-04 19:21:44 +0200
committerMarcel Holtmann <marcel@holtmann.org>2016-07-04 19:21:44 +0200
commit12cd2eda1a7648833ddfa39c0d02c90693fd2d99 (patch)
treea35fa517d2f8137b3dad160f1fd60660962db7bf /lib
parent03f0497691537681a75fe498a6ca97e3f9dfbb64 (diff)
downloadbluez-12cd2eda1a7648833ddfa39c0d02c90693fd2d99.tar.gz
lib: Define HCI_PRIMARY and use it instead of HCI_BREDR
Diffstat (limited to 'lib')
-rw-r--r--lib/hci.c10
-rw-r--r--lib/hci.h3
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/hci.c b/lib/hci.c
index c339085f0..2ac09a15f 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -143,7 +143,7 @@ char *hci_bustostr(int bus)
{
switch (bus) {
case HCI_VIRTUAL:
- return "VIRTUAL";
+ return "Virtual";
case HCI_USB:
return "USB";
case HCI_PCCARD:
@@ -161,7 +161,7 @@ char *hci_bustostr(int bus)
case HCI_I2C:
return "I2C";
default:
- return "UNKNOWN";
+ return "Unknown";
}
}
@@ -173,12 +173,12 @@ char *hci_dtypetostr(int type)
char *hci_typetostr(int type)
{
switch (type) {
- case HCI_BREDR:
- return "BR/EDR";
+ case HCI_PRIMARY:
+ return "Primary";
case HCI_AMP:
return "AMP";
default:
- return "UNKNOWN";
+ return "Unknown";
}
}
diff --git a/lib/hci.h b/lib/hci.h
index d1c7b9700..747f2a6c4 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -59,8 +59,9 @@ extern "C" {
#define HCI_I2C 8
/* HCI controller types */
-#define HCI_BREDR 0x00
+#define HCI_PRIMARY 0x00
#define HCI_AMP 0x01
+#define HCI_BREDR HCI_PRIMARY
/* HCI device flags */
enum {