Bluetooth: Fix handle of received P-bit
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 29 May 2010 05:24:35 +0000 (02:24 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:06 +0000 (10:39 -0700)
commit3cb123d1c03a0510d3c325bfaa971ce4df1e050d
treed8287b65d2f01ebb352fce02e1046c8377582398
parent2ece3684b4037ad2394de795d67abbe412ab5e2f
Bluetooth: Fix handle of received P-bit

ERTM spec mandates that after receive a P-bit we shall send an F-bit in
response. This patch fixes this for retransmitted packets, on
retransmitting we were missing to check for a pending F-bit to be sent.
Also we were missing some annotation to send a F-bit.

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