Bluetooth: Add implementation for retransmitting all unacked frames
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:43 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:03 +0000 (06:34 +0300)
commite1fbd4c19a5c4d4f490d70e73745cf2cf0dc1955
tree64d34305d038a1cdba8bd3380987028b3ecc1471
parentd2a7ac5d5d3a0b166ac128883bd088064c029fe5
Bluetooth: Add implementation for retransmitting all unacked frames

This adds l2cap_ertm_resend to retransmit frames based on the sequence
numbers in chan->retrans_list.  If the retransmit limit is reached for
any individual frame is reached, the connection is dropped.  skbs that
are cloned already are copied to avoid modifying shared data (this is
uncommon).  To retransmit all frames, l2cap_retransmit_all now builds
a list of all unacked sequence numbers and then calls
l2cap_ertm_resend.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c