monitor: Add LE Extended Scan commands decoding

System Internals / BlueZ - Michał Narajowski [codecoup.pl] - 8 August 2017 07:18 EDT

This patch adds decoding for following commands:

LE Set Extended Scan Parameters LE Set Extended Scan Enable LE Extended Create Connection LE Extended Advertising Report Event

< HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 13 Own address type: Public (0x00) Filter policy: Accept all advertisement (0x00) PHYs: 0x05 Entry 0: LE 1M Type: Active (0x01) Interval: 30.000 msec (0x0030) Window: 30.000 msec (0x0030) Entry 1: LE Coded Type: Active (0x01) Interval: 30.000 msec (0x0030) Window: 30.000 msec (0x0030)

< HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6 Extended scan: Enabled (0x01) Filter duplicates: Disabled (0x00) Duration: 0 msec (0x0000) Period: 0.00 sec (0x0000)

< HCI Command: LE Extended Create Connection (0x08|0x0043) plen 29 Filter policy: White list is not used (0x00) Own address type: Public (0x00) Peer address type: Public (0x00) Peer address: 11:22:33:C0:DE:C0 (OUI 11-22-33) Initiating PHYs: 0x04 Entry 0: LE Coded Scan interval: 10.000 msec (0x0010) Scan window: 10.000 msec (0x0010) Min connection interval: 30.00 msec (0x0018) Max connection interval: 50.00 msec (0x0028) Connection latency: 0 (0x0000) Supervision timeout: 2560 msec (0x0100) Min connection length: 10.000 msec (0x0010) Max connection length: 480.000 msec (0x0300)

e29ef3b monitor: Add LE Extended Scan commands decoding
monitor/bt.h | 60 ++++++++
monitor/packet.c | 406 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
2 files changed, 449 insertions(+), 17 deletions(-)

Upstream: git.kernel.org


  • Share