From 10fb9d6a17dedde75be8fffc17e32e22057fb2d6 Mon Sep 17 00:00:00 2001 From: Daniel Orstadius Date: Thu, 10 Feb 2011 12:34:01 +0200 Subject: [PATCH] hcidump: Add check for ACL_START_NO_FLUSH In addition to ACL_START, hcidump should check for the flag ACL_START_NO_FLUSH to indicate the start of a frame. Using '==' instead of '&' for the comparison since ACL_START_NO_FLUSH is defined to zero. The flag was introduced in BlueZ commit 2430512c983cad8c20252f1df8f297399993ca3d --- tools/parser/l2cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/parser/l2cap.c b/tools/parser/l2cap.c index 963468ce0..673c6b56d 100644 --- a/tools/parser/l2cap.c +++ b/tools/parser/l2cap.c @@ -941,7 +941,7 @@ void l2cap_dump(int level, struct frame *frm) l2cap_hdr *hdr; uint16_t dlen; - if (frm->flags & ACL_START) { + if ((frm->flags & ACL_START) || frm->flags == ACL_START_NO_FLUSH) { hdr = frm->ptr; dlen = btohs(hdr->len); -- 2.47.3