Bluetooth: Fix bug with ERTM vars increment
authorGustavo F. Padovan <padovan@profusion.mobi>
Mon, 10 May 2010 22:34:11 +0000 (19:34 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:04 +0000 (10:39 -0700)
commit8ff50ec04a7ecdbba6e0a5423cf6f2c5f7fc605e
tree49503c86fc8403d7a7dd95a5df4411ec8d3207c3
parentf6337c771126420c348b702e012262cfb5f0d56e
Bluetooth: Fix bug with ERTM vars increment

All ERTM operations regarding the txWindow should be modulo 64,
otherwise we confuse the ERTM logic and connections will break.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c