linux/include/net/bluetooth
Luiz Augusto von Dentz 9e726b1742 Bluetooth: Fix rejected connection not disconnecting ACL link
When using DEFER_SETUP on a RFCOMM socket, a SABM frame triggers
authorization which when rejected send a DM response. This is fine
according to the RFCOMM spec:

    the responding implementation may replace the "proper" response
    on the Multiplexer Control channel with a DM frame, sent on the
    referenced DLCI to indicate that the DLCI is not open, and that
    the responder would not grant a request to open it later either.

But some stacks doesn't seems to cope with this leaving DLCI 0 open after
receiving DM frame.

To fix it properly a timer was introduced to rfcomm_session which is used
to set a timeout when the last active DLC of a session is unlinked, this
will give the remote stack some time to reply with a proper DISC frame on
DLCI 0 avoiding both sides sending DISC to each other on stacks that
follow the specification and taking care of those who don't by taking
down DLCI 0.

Signed-off-by: Luiz Augusto von Dentz <luiz.dentz@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2009-08-22 15:05:58 -07:00
..
bluetooth.h Bluetooth: Add support for L2CAP SREJ exception 2009-08-22 15:01:25 -07:00
hci_core.h Bluetooth: Convert hdev->req_lock to a mutex 2009-08-22 14:35:02 -07:00
hci.h Bluetooth: Add different pairing timeout for Legacy Pairing 2009-04-28 09:31:38 -07:00
l2cap.h Bluetooth: Full support for receiving L2CAP SREJ frames 2009-08-22 15:03:43 -07:00
rfcomm.h Bluetooth: Fix rejected connection not disconnecting ACL link 2009-08-22 15:05:58 -07:00
sco.h