Commit 3908feb1 authored by Pauli Virtanen's avatar Pauli Virtanen Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: L2CAP: copy RX timestamp to new fragments



Copy timestamp too when allocating new skb for received fragment.
Fixes missing RX timestamps with fragmentation.

Fixes: 4d7ea8ee ("Bluetooth: L2CAP: Fix handling fragmented length")
Signed-off-by: default avatarPauli Virtanen <pav@iki.fi>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 1c766495
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7415,6 +7415,9 @@ static int l2cap_recv_frag(struct l2cap_conn *conn, struct sk_buff *skb,
			return -ENOMEM;
		/* Init rx_len */
		conn->rx_len = len;

		skb_set_delivery_time(conn->rx_skb, skb->tstamp,
				      skb->tstamp_type);
	}

	/* Copy as much as the rx_skb can hold */