diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2015-02-19 17:20:34 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-02-19 18:27:20 +0200 |
commit | 56753316a4b67b66feb9d1d9fc6502e9ed043b1e (patch) | |
tree | 3e42849601ec6e3c964f0446a8ef77e9425f1245 /monitor/l2cap.h | |
parent | 16ad0a71a26fc47afab66d5d882492d0c8312bab (diff) | |
download | bluez-56753316a4b67b66feb9d1d9fc6502e9ed043b1e.tar.gz |
monitor: Add PSM tracking support for LE CoC
This uses identifier to match simultaneous L2CAP connect requests
and responses.
< ACL Data TX: Handle 3585 flags 0x00 dlen 18
LE L2CAP: LE Connection Request (0x14) ident 2 len 10
PSM: 131 (0x0083)
Source CID: 65
MTU: 672
MPS: 672
Credits: 10
> ACL Data RX: Handle 3585 flags 0x02 dlen 18
LE L2CAP: LE Connection Response (0x15) ident 2 len 10
Destination CID: 65
MTU: 23
MPS: 23
Credits: 5
Result: Connection successful (0x0000)
< ACL Data TX: Handle 3585 flags 0x00 dlen 27
Channel: 65 len 23 [PSM 131 mode 0] {chan 1}
17 00 00 00 00 00 17 00 7f 7f 7f 7f 7f 7f 7f 7f ................
7f 7f 7f 7f 7f 7f 7f .......
< ACL Data TX: Handle 3585 flags 0x00 dlen 6
Channel: 65 len 2 [PSM 131 mode 0] {chan 1}
7f 7f ..
Diffstat (limited to 'monitor/l2cap.h')
-rw-r--r-- | monitor/l2cap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/monitor/l2cap.h b/monitor/l2cap.h index 975f78a12..711bcb161 100644 --- a/monitor/l2cap.h +++ b/monitor/l2cap.h @@ -29,6 +29,7 @@ struct l2cap_frame { uint16_t index; bool in; uint16_t handle; + uint8_t ident; uint16_t cid; uint16_t psm; uint16_t chan; @@ -44,6 +45,7 @@ static inline void l2cap_frame_pull(struct l2cap_frame *frame, frame->index = source->index; frame->in = source->in; frame->handle = source->handle; + frame->ident = source->ident; frame->cid = source->cid; frame->psm = source->psm; frame->chan = source->chan; |