projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af7985b
)
Bluetooth: Remove magic value in disconnect mgmt handler
author
Andre Guedes
<andre.guedes@openbossa.org>
Mon, 11 Jun 2012 21:41:12 +0000
(18:41 -0300)
committer
Gustavo Padovan
<gustavo.padovan@collabora.co.uk>
Wed, 13 Jun 2012 02:26:03 +0000
(23:26 -0300)
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>
net/bluetooth/mgmt.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index b4816632d72472a32636538ce9fafd5f7c45841d..5aa5592ad578dd64426202743e90b78166d493ad 100644
(file)
--- 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)