Bluetooth: Add the ERTM receive state machine
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:42 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:03 +0000 (06:34 +0300)
commitd2a7ac5d5d3a0b166ac128883bd088064c029fe5
treeb6a03c938d1ac579a5fd8f7a6095441e9c4505eb
parente31f76337257616aca0ea15abee271513b17426c
Bluetooth: Add the ERTM receive state machine

This adds a top-level state machine with handlers for two receive
states defined in the ERTM spec, RECV and SREJ_SENT.  The reqseq value
of the incoming frame is also validated at the top level and a
disconnection is forced if it is invalid.  The actions for the RECV
and SREJ_SENT states are implemented according to the state tables in
the ERTM specification.

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