Bluetooth: Send Ack after clear the SREJ list
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 1 May 2010 19:15:40 +0000 (16:15 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 May 2010 07:28:49 +0000 (09:28 +0200)
As specified by Bluetooth 3.0 spec we shall send an acknowledgment using
the Send-Ack() after clear the SREJ list.

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

index e936913c921ebef73d30a47bab1b4f06638ff12e..c6bc1b9ed6570e4aa693afe7e04dfa7e0f28e153 100644 (file)
@@ -3493,6 +3493,7 @@ static inline int l2cap_data_channel_iframe(struct sock *sk, u16 rx_control, str
                        if (list_empty(SREJ_LIST(sk))) {
                                pi->buffer_seq = pi->buffer_seq_srej;
                                pi->conn_state &= ~L2CAP_CONN_SREJ_SENT;
+                               l2cap_send_ack(pi);
                        }
                } else {
                        struct srej_list *l;