diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-05-01 15:15:36 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-05-10 03:28:46 -0400 |
commit | 7dffe4210233a2860c3f41477c40b3252edf2b7d (patch) | |
tree | f86182be172eca9677d319bcd03e71b03b202a4a /net/bluetooth/l2cap.c | |
parent | faaebd192ec9c3febcab98149d1309199a5b886c (diff) |
Bluetooth: Fix expected_tx_seq calculation on L2CAP
All operation related to the txWindow should be modulo 64.
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>
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 46f22640a337..401011a53c73 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -3611,7 +3611,7 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk | |||
3611 | if (pi->expected_tx_seq == tx_seq) | 3611 | if (pi->expected_tx_seq == tx_seq) |
3612 | pi->expected_tx_seq = (pi->expected_tx_seq + 1) % 64; | 3612 | pi->expected_tx_seq = (pi->expected_tx_seq + 1) % 64; |
3613 | else | 3613 | else |
3614 | pi->expected_tx_seq = tx_seq + 1; | 3614 | pi->expected_tx_seq = (tx_seq + 1) % 64; |
3615 | 3615 | ||
3616 | l2cap_sar_reassembly_sdu(sk, skb, control); | 3616 | l2cap_sar_reassembly_sdu(sk, skb, control); |
3617 | 3617 | ||