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: Ruiyi Zhang <Ruiyi.zhang@atheros.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>

authored by Ruiyi Zhang and committed by Gustavo F. Padovan a429b519 f21ca5ff

+1
+1
net/bluetooth/l2cap_core.c
··· 1051 tx_skb = skb_clone(skb, GFP_ATOMIC); 1052 bt_cb(skb)->retries++; 1053 control = get_unaligned_le16(tx_skb->data + L2CAP_HDR_SIZE); 1054 1055 if (pi->conn_state & L2CAP_CONN_SEND_FBIT) { 1056 control |= L2CAP_CTRL_FINAL;
··· 1051 tx_skb = skb_clone(skb, GFP_ATOMIC); 1052 bt_cb(skb)->retries++; 1053 control = get_unaligned_le16(tx_skb->data + L2CAP_HDR_SIZE); 1054 + control &= L2CAP_CTRL_SAR; 1055 1056 if (pi->conn_state & L2CAP_CONN_SEND_FBIT) { 1057 control |= L2CAP_CTRL_FINAL;