From: Gustavo F. Padovan Date: Wed, 16 Jun 2010 20:21:44 +0000 (-0300) Subject: Bluetooth: Update buffer_seq before retransmit frames X-Git-Tag: v3.0~4150^2~64^2~48^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ece3684b4037ad2394de795d67abbe412ab5e2f;p=platform%2Fkernel%2Flinux-amlogic.git Bluetooth: Update buffer_seq before retransmit frames Updating buffer_seq first make us able to ack the last I-frame received. This is also a requirement of the Profile Tuning Suite software. Signed-off-by: Gustavo F. Padovan Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 40cf67c1..ecf3e3d 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -3931,6 +3931,10 @@ expected: return 0; } + err = l2cap_push_rx_skb(sk, skb, rx_control); + if (err < 0) + return 0; + if (rx_control & L2CAP_CTRL_FINAL) { if (pi->conn_state & L2CAP_CONN_REJ_ACT) pi->conn_state &= ~L2CAP_CONN_REJ_ACT; @@ -3938,10 +3942,6 @@ expected: l2cap_retransmit_frames(sk); } - err = l2cap_push_rx_skb(sk, skb, rx_control); - if (err < 0) - return 0; - __mod_ack_timer(); pi->num_acked = (pi->num_acked + 1) % num_to_ack;