diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-06-11 23:41:12 +0200 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-06-13 04:26:03 +0200 |
commit | 3701f94451ea341fb5305cb55f7afc04bf0dc56e (patch) | |
tree | 5ed14b790ff9c4790b6668979fdf95ba2db2c803 /net/bluetooth/mgmt.c | |
parent | Bluetooth: Fix flags of mgmt_device_found event (diff) | |
download | linux-3701f94451ea341fb5305cb55f7afc04bf0dc56e.tar.xz linux-3701f94451ea341fb5305cb55f7afc04bf0dc56e.zip |
Bluetooth: Remove magic value in disconnect mgmt handler
This patch replaces the magic value of variable 'reason' by the
proper macro.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index b4816632d724..5aa5592ad578 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -1611,7 +1611,7 @@ static int disconnect(struct sock *sk, struct hci_dev *hdev, void *data, } dc.handle = cpu_to_le16(conn->handle); - dc.reason = 0x13; /* Remote User Terminated Connection */ + dc.reason = HCI_ERROR_REMOTE_USER_TERM; err = hci_send_cmd(hdev, HCI_OP_DISCONNECT, sizeof(dc), &dc); if (err < 0) |