diff options
| -rw-r--r-- | include/hci.h | 2 | ||||
| -rw-r--r-- | src/bluetooth.c | 2 | 
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; | 
