Bluetooth: Update l2cap_send_i_or_rr_or_rnr to fit the spec better
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:41 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:03 +0000 (06:34 +0300)
commite31f76337257616aca0ea15abee271513b17426c
tree4817376d779766ff6a581aff8127f7126ccd6ada
parent61aa4f5b9f43b21668aec51da2df3e9ed5f4226d
Bluetooth: Update l2cap_send_i_or_rr_or_rnr to fit the spec better

This action now exactly matches what is defined in the ERTM
specification, including clearing the remote busy flag and setting the
retransmit timer rather than retransmitting frames directly.  The spec
does not retransmit frames as part of this action, since
retransmission is only triggered by REJ, SREJ, or an RR with the final
bit set.  struct l2cap_ctrl is also used to set up header values.

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