diff options
author | Daniel Orstadius <daniel.orstadius@nokia.com> | 2011-02-10 12:34:01 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-11 13:01:07 -0800 |
commit | 1a80b5446a797dfb99795e9b16a5561dc47ee8e6 (patch) | |
tree | d746dfde37f4dec841e61a0566e6573d6fb0d52f | |
parent | 94d920177d4ee724bc34787f72d17b321efb0417 (diff) | |
download | hcidump-1a80b5446a797dfb99795e9b16a5561dc47ee8e6.tar.gz |
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.c | 2 |
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); |