]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Refactor l2cap_send_sframe
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:35 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:02 +0000 (06:34 +0300)
commit1e469482026073c3f06dc17be9c37c989a175b8d
treeb4e6f2f2304673775915c23e14646bee7fa1a987
parent34b67c3da7290bd6ac359f230d6ed9c3b3639619
Bluetooth: Refactor l2cap_send_sframe

The new implementation uses struct l2cap_ctrl to set up the sframe
fields, and also reduces duplicate acks by canceling the ack timer
whenever an RR or RNR frame is sent.  sframe PDU generation is also
split in to a separate function to separate it from the logic related
to the connection state and sframe type.

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