Commit ca42a613 authored by Gustavo F. Padovan's avatar Gustavo F. Padovan Committed by Marcel Holtmann

Bluetooth: Acknowledge L2CAP packets when receiving RR-frames (F-bit=1)

Implement the Recv ReqSeqAndFBit event when a RR frame with F bit set is
received.
Signed-off-by: default avatarGustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent cbe86b98
...@@ -3348,9 +3348,13 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str ...@@ -3348,9 +3348,13 @@ static inline int l2cap_data_channel_sframe(struct sock *sk, u16 rx_control, str
case L2CAP_SUPER_RCV_READY: case L2CAP_SUPER_RCV_READY:
if (rx_control & L2CAP_CTRL_POLL) { if (rx_control & L2CAP_CTRL_POLL) {
u16 control = L2CAP_CTRL_FINAL; u16 control = L2CAP_CTRL_FINAL;
control |= L2CAP_SUPER_RCV_READY; control |= L2CAP_SUPER_RCV_READY |
(pi->buffer_seq << L2CAP_CTRL_REQSEQ_SHIFT);
l2cap_send_sframe(l2cap_pi(sk), control); l2cap_send_sframe(l2cap_pi(sk), control);
} else if (rx_control & L2CAP_CTRL_FINAL) { } else if (rx_control & L2CAP_CTRL_FINAL) {
pi->expected_ack_seq = tx_seq;
l2cap_drop_acked_frames(sk);
if (!(pi->conn_state & L2CAP_CONN_WAIT_F)) if (!(pi->conn_state & L2CAP_CONN_WAIT_F))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment