diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-08 22:09:13 (GMT) |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-13 18:11:54 (GMT) |
commit | b569450682e944653f307b47c549ca12150d4596 (patch) | |
tree | fc17f28497a5aee9e32c289d5762c2deee5d0541 /net | |
parent | 1a09bcb97ca1b4eb9a6ea381fbc3beb7a9d2895d (diff) | |
download | linux-b569450682e944653f307b47c549ca12150d4596.tar.xz |
Bluetooth: Don't forget to check for LE_LINK
Otherwise the wrong error can be returned.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 3b31a1f..cb68b27 100644 --- 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; |