Bluetooth: Fix bug in l2cap_ertm_send() behavior
authorGustavo F. Padovan <padovan@profusion.mobi>
Tue, 1 Jun 2010 21:52:58 +0000 (18:52 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:04 +0000 (10:39 -0700)
commit6e2b6722abaa3f6042357e11f465488b7c12f94c
treef3c7b190298f4f779bc35eb680e2306da25e06aa
parentbc1b1f8bee63966649dd5ac7d10d31a6556bf19b
Bluetooth: Fix bug in l2cap_ertm_send() behavior

This patch makes l2cap_ertm_send() similar to the Send-Data action of
the ERTM spec. We shall not check for RemoteBusy or WAIT_F state
inside l2cap_ertm_send().

Such checks were causing a bug in the retransmission logic of ERTM and
making ERTM stalls until the ACL is dropped.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c