Bluetooth: Refactor l2cap_ertm_send
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:34 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:02 +0000 (06:34 +0300)
commit18a48e76640c590a14b0286c9da5fde6ac146cc2
tree8ba776cf162896dab0163389d1efad6ad3b235b2
parent3733937d96f3fe4dfc3b8da43385d739e905ff41
Bluetooth: Refactor l2cap_ertm_send

The new implementation is aware of the new transmit state machine, and
uses struct l2cap_ctrl to compose ERTM headers.  It also has improved
error handling for allocation failures, and does not send the packet
until after all skb and channel data structures are updated.

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