Skip to content

Commit

Permalink
Bluetooth: Don't forget to check for LE_LINK
Browse files Browse the repository at this point in the history
Otherwise the wrong error can be returned.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Jun 13, 2011
1 parent 1a09bcb commit b569450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b569450

Please sign in to comment.