aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Orstadius <daniel.orstadius@nokia.com>2011-02-10 12:34:01 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2011-02-11 13:01:07 -0800
commit1a80b5446a797dfb99795e9b16a5561dc47ee8e6 (patch)
treed746dfde37f4dec841e61a0566e6573d6fb0d52f
parent94d920177d4ee724bc34787f72d17b321efb0417 (diff)
downloadbluez-hcidump-1a80b5446a797dfb99795e9b16a5561dc47ee8e6.tar.gz
bluez-hcidump-1a80b5446a797dfb99795e9b16a5561dc47ee8e6.tar.xz
bluez-hcidump-1a80b5446a797dfb99795e9b16a5561dc47ee8e6.zip
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
-rw-r--r--parser/l2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/l2cap.c b/parser/l2cap.c
index 963468c..673c6b5 100644
--- a/parser/l2cap.c
+++ b/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);