Commit a429b519 authored by Ruiyi Zhang's avatar Ruiyi Zhang Committed by Gustavo F. Padovan

Bluetooth: Only keeping SAR bits when retransmitting one frame.

When retrasmitting one frame, only SAR bits in control field should
be kept.
Signed-off-by: default avatarRuiyi Zhang <Ruiyi.zhang@atheros.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent f21ca5ff
......@@ -1051,6 +1051,7 @@ static void l2cap_retransmit_one_frame(struct sock *sk, u8 tx_seq)
tx_skb = skb_clone(skb, GFP_ATOMIC);
bt_cb(skb)->retries++;
control = get_unaligned_le16(tx_skb->data + L2CAP_HDR_SIZE);
control &= L2CAP_CTRL_SAR;
if (pi->conn_state & L2CAP_CONN_SEND_FBIT) {
control |= L2CAP_CTRL_FINAL;
......
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