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:
1a09bcb
)
Bluetooth: Don't forget to check for LE_LINK
author
Gustavo F. Padovan
<padovan@profusion.mobi>
Wed, 8 Jun 2011 22:09:13 +0000
(19:09 -0300)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Mon, 13 Jun 2011 18:11:54 +0000
(15:11 -0300)
Otherwise the wrong error can be returned.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index 3b31a1f1f020e55e68d196bd1af2e4d48fe585b7..cb68b27edc9b30f8e14e8893348f25bf130318eb 100644
(file)
--- a/
net/bluetooth/l2cap_core.c
+++ b/
net/bluetooth/l2cap_core.c
@@
-4127,7
+4127,7
@@
static int l2cap_disconn_ind(struct hci_conn *hcon)
BT_DBG("hcon %p", hcon);
- if (
hcon->type != ACL_LINK
|| !conn)
+ if (
(hcon->type != ACL_LINK && hcon->type != LE_LINK)
|| !conn)
return 0x13;
return conn->disc_reason;