monitor: Add support for Suspend and Resume events
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Sat, 29 Aug 2020 01:02:09 +0000 (18:02 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:50 +0000 (14:30 +0530)
commitf7a36e2e91986a34d5786b9353f124640743d314
treefb292cffca38c39876c02843af7c1b8129ef7c64
parent1a7f85389740f0ee6300c40513e0965820cb0a1b
monitor: Add support for Suspend and Resume events

Add support to pretty print Suspend and Resume mgmt events in btmon.

Example:

@ MGMT Event: Controller Suspended (0x002d) plen 1
        Suspend state: Page scanning and/or passive scanning (2)

@ MGMT Event: Controller Resumed (0x002e) plen 8
        Wake reason: Remote wake due to peer device connection (2)
        LE Address: CD:F3:CD:13:C5:9A (OUI CD-F3-CD)

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
monitor/packet.c