diff options
author | 2025-04-24 22:51:03 +0300 | |
---|---|---|
committer | 2025-04-25 15:03:19 -0400 | |
commit | 3908feb1bd7f319a10e18d84369a48163264cc7d (patch) | |
tree | e5efb87bb5af1c55066f8b682afdb6dc4efea00e | |
parent | Bluetooth: btintel_pcie: Add additional to checks to clear TX/RX paths (diff) | |
download | wireguard-linux-3908feb1bd7f319a10e18d84369a48163264cc7d.tar.xz wireguard-linux-3908feb1bd7f319a10e18d84369a48163264cc7d.zip |
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: 4d7ea8ee90e4 ("Bluetooth: L2CAP: Fix handling fragmented length")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to '')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 5ca7ac43c58d..73472756618a 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -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 */ |