summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-11-08 21:51:52 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-11-08 21:51:52 +0000
commit34fb9e62566cddafd8d4fea40e368434859ae25a (patch)
treec56f43592feb8ac7e3d84359c03faaa8b7140a9f
parent52e03fab5cb877505e6a4c391b5b0456726ed162 (diff)
Change HCI_KEY_MISSING to HCI_PIN_OR_KEY_MISSING
-rw-r--r--include/hci.h2
-rw-r--r--src/bluetooth.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/hci.h b/include/hci.h
index c8c3aa16..2f959fe2 100644
--- a/include/hci.h
+++ b/include/hci.h
@@ -150,7 +150,7 @@ enum {
#define HCI_HARDWARE_FAILURE 0x03
#define HCI_PAGE_TIMEOUT 0x04
#define HCI_AUTHENTICATION_FAILURE 0x05
-#define HCI_KEY_MISSING 0x06
+#define HCI_PIN_OR_KEY_MISSING 0x06
#define HCI_MEMORY_FULL 0x07
#define HCI_CONNECTION_TIMEOUT 0x08
#define HCI_MAX_NUMBER_OF_CONNECTIONS 0x09
diff --git a/src/bluetooth.c b/src/bluetooth.c
index 22957c7f..00639d2d 100644
--- a/src/bluetooth.c
+++ b/src/bluetooth.c
@@ -121,7 +121,7 @@ int bt_error(uint16_t code)
return EHOSTDOWN;
case HCI_AUTHENTICATION_FAILURE:
return EACCES;
- case HCI_KEY_MISSING:
+ case HCI_PIN_OR_KEY_MISSING:
return EINVAL;
case HCI_MEMORY_FULL:
return ENOMEM;