Bluetooth: Fix possible missing I-Frame acknowledgement
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 7 Feb 2012 14:43:01 +0000 (15:43 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:35 +0000 (17:01 +0200)
commit8ed7a0ae7834cbefb82ed15a92e36983924efa23
tree96cbe9f236a41556dde36c6d92e2355b4047f7b6
parent6d5922b01b5e8d684dae5baaea596a4a749738e3
Bluetooth: Fix possible missing I-Frame acknowledgement

Make l2cap_ertm_send return number of pending I-Frames transmitted
instead of all (pending + retransmitted) I-Frames transmitted.

As only pending I-Frames are considered as acknowledgement, this could
lead to situation when no ACK was sent in __l2cap_send_ack (if only
already transmitted I-Frames were retransmitted).

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c