summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorAndrei Emeltchenko2011-11-07 13:20:25 +0100
committerGustavo F. Padovan2011-11-08 15:53:11 +0100
commit9f5a0d7bf079e9e26771ad13ff1c2cb3adf80963 (patch)
treee82724f7e47c226831c757b2b78c8bef98653d50 /include/net/bluetooth/hci_core.h
parentBluetooth: Clean up logic in hci_cc_write_scan_enable (diff)
downloadkernel-qcow2-linux-9f5a0d7bf079e9e26771ad13ff1c2cb3adf80963.tar.gz
kernel-qcow2-linux-9f5a0d7bf079e9e26771ad13ff1c2cb3adf80963.tar.xz
kernel-qcow2-linux-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_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index f97792c972f3..006a7699abac 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -730,7 +730,7 @@ static inline void hci_proto_connect_cfm(struct hci_conn *conn, __u8 status)
static inline int hci_proto_disconn_ind(struct hci_conn *conn)
{
register struct hci_proto *hp;
- int reason = 0x13;
+ int reason = HCI_ERROR_REMOTE_USER_TERM;
hp = hci_proto[HCI_PROTO_L2CAP];
if (hp && hp->disconn_ind)