Bluetooth: Fix drop of packets with invalid req_seq/tx_seq
authorGustavo F. Padovan <padovan@profusion.mobi>
Mon, 10 May 2010 21:32:04 +0000 (18:32 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:04 +0000 (10:39 -0700)
commitf6337c771126420c348b702e012262cfb5f0d56e
treea748aab2aa766c3e22fb55de6b863c1b114da686
parent0b31c85ce78d3646ac1e90d62969e7cd8cfd8b15
Bluetooth: Fix drop of packets with invalid req_seq/tx_seq

We shall not use an unsigned var since we are expecting negatives value
there. Using unsigned causes ERTM connection to close due to invalid
ReqSeq numbers.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c