Bluetooth: Refactor l2cap_send_ack
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:39 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:03 +0000 (06:34 +0300)
commit0a0aba42b8daba55e4d2bdfc3c8ca7d7d827b723
tree21f27405894f84c00fba0f42199802ba5acc1025
parentf5dbb0772df3feb2bb5eda8a9f0e0acdeb25653f
Bluetooth: Refactor l2cap_send_ack

The function now encapsulates more of the logic to either immediately
send an ack if the transmit window is over 75% full, or wait for the
ack timer to expire if the transmit window is not full enough.  It is
also able to push out waiting iframes that can carry an
acknowledgement.

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