aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2011-11-07 14:20:25 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-11-08 12:53:11 -0200
commit9f5a0d7bf079e9e26771ad13ff1c2cb3adf80963 (patch)
treee82724f7e47c226831c757b2b78c8bef98653d50 /include/net/bluetooth/hci.h
parentBluetooth: Clean up logic in hci_cc_write_scan_enable (diff)
downloadlinux-dev-9f5a0d7bf079e9e26771ad13ff1c2cb3adf80963.tar.xz
linux-dev-9f5a0d7bf079e9e26771ad13ff1c2cb3adf80963.zip
Bluetooth: Define HCI reasons instead of magic number
Use HCI error reasons instead of magic numbers. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r--include/net/bluetooth/hci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index c5fcd13b9edf..139ce2aa6eee 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -264,6 +264,13 @@ enum {
#define HCI_LK_SMP_IRK 0x82
#define HCI_LK_SMP_CSRK 0x83
+/* ---- HCI Error Codes ---- */
+#define HCI_ERROR_AUTH_FAILURE 0x05
+#define HCI_ERROR_REJ_BAD_ADDR 0x0f
+#define HCI_ERROR_REMOTE_USER_TERM 0x13
+#define HCI_ERROR_LOCAL_HOST_TERM 0x16
+#define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18
+
/* ----- HCI Commands ---- */
#define HCI_OP_NOP 0x0000