Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 016833cd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Fix ERTM L2CAP resend packet"

parents 3fc4ced6 d119b066
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2101,10 +2101,12 @@ static void l2cap_ertm_resend(struct l2cap_chan *chan)
					   tx_skb->data + L2CAP_HDR_SIZE);
		}

		/* Update FCS */
		if (chan->fcs == L2CAP_FCS_CRC16) {
			u16 fcs = crc16(0, (u8 *) tx_skb->data, tx_skb->len);
			put_unaligned_le16(fcs, skb_put(tx_skb,
							L2CAP_FCS_SIZE));
			u16 fcs = crc16(0, (u8 *) tx_skb->data,
					tx_skb->len - L2CAP_FCS_SIZE);
			put_unaligned_le16(fcs, skb_tail_pointer(tx_skb) -
						L2CAP_FCS_SIZE);
		}

		l2cap_do_send(chan, tx_skb);