Bluetooth: Add new ERTM receive states for channel move
authorMat Martineau <mathewm@codeaurora.org>
Tue, 23 Oct 2012 22:24:11 +0000 (15:24 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 24 Oct 2012 02:12:04 +0000 (00:12 -0200)
commit32b32735ca1439e2ead658dd63234c0c380af8ac
treeea400cb0ba20d8c105ff33911a39e115f545572a
parent02b0fbb92dbb0e3c50f1c955547444e3997c80e3
Bluetooth: Add new ERTM receive states for channel move

Two new states are required to implement channel moves with the ERTM
receive state machine.

The "WAIT_P" state is used by a move responder to wait for a "poll"
flag after a move is completed (success or failure).  "WAIT_F" is
similarly used by a move initiator to wait for a "final" flag when the
move is completing.  In either state, the reqseq value in the
poll/final frame tells the state machine exactly which frame should be
expected next.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c