diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2016-07-04 19:21:44 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-07-04 19:21:44 +0200 |
commit | 12cd2eda1a7648833ddfa39c0d02c90693fd2d99 (patch) | |
tree | a35fa517d2f8137b3dad160f1fd60660962db7bf /lib | |
parent | 03f0497691537681a75fe498a6ca97e3f9dfbb64 (diff) | |
download | bluez-12cd2eda1a7648833ddfa39c0d02c90693fd2d99.tar.gz |
lib: Define HCI_PRIMARY and use it instead of HCI_BREDR
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hci.c | 10 | ||||
-rw-r--r-- | lib/hci.h | 3 |
2 files changed, 7 insertions, 6 deletions
@@ -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"; } } @@ -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 { |