Skip to contentSkip to conversation

monitor: Add sequence number and SDU length to ISO packets

PATCH Applied Luiz Augusto von Dentz 3 participants 3 messages Jul 14, 2025

Subsystems (2)
lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 monitor: Add sequence number and SDU length to ISO packets

From: Luiz Augusto von Dentz <[email protected]>

This prints sequence number and SDU length of ISO packets:

Quoted 1 line

ISO Data RX: Handle 2304 SN 48 flags 0x02 dlen 64 slen 60

---
 lib/hci.h        |  5 +++++
 monitor/packet.c | 51 ++++++++++++++++++++++++++++++++----------------
 2 files changed, 39 insertions(+), 17 deletions(-)
lib/hci.h +5 -0
index 96733efc1e3b..8f59a535a7fa 100644
@@ -2327,6 +2327,11 @@ typedef struct {
 #define acl_handle(h)		(h & 0x0fff)
 #define acl_flags(h)		(h >> 12)
 
+/* ISO handle and flags pack/unpack */
+#define iso_flags_pb(f)		(f & 0x0003)
+#define iso_flags_ts(f)		((f >> 2) & 0x0001)
+#define iso_flags_pack(pb, ts)	((pb & 0x03) | ((ts & 0x01) << 2))
+
 #endif /* _NO_HCI_DEFS */
 
 /* HCI Socket options */
monitor/packet.c +34 -17

76 lines not on this page · raw message

Signature · 1 line
2.50.0
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=982133

---Test result---

Test Summary:

CheckPatch                    PENDING   0.27 seconds
GitLint                       PENDING   0.30 seconds
BuildEll                      PASS      20.95 seconds
BluezMake                     PASS      3160.57 seconds
MakeCheck                     PASS      20.24 seconds
MakeDistcheck                 PASS      185.29 seconds
CheckValgrind                 PASS      240.59 seconds
CheckSmatch                   WARNING   305.79 seconds
bluezmakeextell               PASS      130.22 seconds
IncrementalBuild              PENDING   0.25 seconds
ScanBuild                     PASS      934.23 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
monitor/packet.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.monitor/packet.c:1918:26: warning: Variable length array is used.monitor/packet.c: note: in included file:monitor/bt.h:3822:52: warning: array of flexible structures
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:

---
Regards,
Linux Bluetooth

#2 lore raw
In reply to Luiz Augusto von Dentz
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 9 lines · On Mon, 14 Jul 2025 11:36:23 -0400 you wrote:

From: Luiz Augusto von Dentz <[email protected]>

This prints sequence number and SDU length of ISO packets:

Quoted 1 line

ISO Data RX: Handle 2304 SN 48 flags 0x02 dlen 64 slen 60

---
 lib/hci.h        |  5 +++++
 monitor/packet.c | 51 ++++++++++++++++++++++++++++++++----------------
 2 files changed, 39 insertions(+), 17 deletions(-)

Here is the summary with links:
- [BlueZ,v1] monitor: Add sequence number and SDU length to ISO packets

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=468c5877c3ba

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html