]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: ISO: add socket option to report packet seqnum via CMSG
authorPauli Virtanen <pav@iki.fi>
Mon, 14 Jul 2025 16:40:37 +0000 (19:40 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Jul 2025 14:31:19 +0000 (10:31 -0400)
commit7565bc56598c3d135318f1bd76a0178dd3ea918f
treec8f443423c3bdb0c089de25286cbdf3ad4b00215
parent15843c7fdba65568704245fd3ea2aa3aa2d50825
Bluetooth: ISO: add socket option to report packet seqnum via CMSG

User applications need a way to track which ISO interval a given SDU
belongs to, to properly detect packet loss. All controllers do not set
timestamps, and it's not guaranteed user application receives all packet
reports (small socket buffer, or controller doesn't send all reports
like Intel AX210 is doing).

Add socket option BT_PKT_SEQNUM that enables reporting of received
packet ISO sequence number in BT_SCM_PKT_SEQNUM CMSG.

Use BT_PKT_SEQNUM == 22 for the socket option, as 21 was used earlier
for a removed experimental feature that never got into mainline.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/bluetooth.h
net/bluetooth/af_bluetooth.c
net/bluetooth/iso.c