]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add streaming mode receive and incoming packet classifier
authorMat Martineau <mathewm@codeaurora.org>
Fri, 18 May 2012 03:53:37 +0000 (20:53 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:03 +0000 (06:34 +0300)
commit53ef5625eff39637de674da85c82d034248fe4b8
treedc41898f921861dcbd734cf101debd68c4f6c6e8
parent5c37a244a38282232df8c779ecc9cc5a734b0919
Bluetooth: Add streaming mode receive and incoming packet classifier

Streaming mode reception is fairly simple, with in-sequence frames
being reassembled as they arrive.  Out-of-sequence frames are dropped,
and also clear any partially-assembled SDUs that may exist.

The packet classifier determines if the txseq value of the incoming
packet is expected, invalid (resulting in a disconnection), invalid
(ignorable), duplicate, or having to do with an SREJ request that was
previously sent.  The rules for each classification are defined in the
ERTM specification, and consolidating these rules in one place helps
clarify the receive state machine.

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