btmgmt: Add "monitor" btmgmt submenu and command "features"
authorMichael Sun <michaelfsun@google.com>
Fri, 19 Jun 2020 22:56:21 +0000 (15:56 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commitb3c618e603f97acb1a927879efa86e31f9900928
tree40601024d019b329084b4fa1153cbfe7c03fa7c2
parent6c26d57a87f101ebd286274c70f8230560f15e9a
btmgmt: Add "monitor" btmgmt submenu and command "features"

This patch introduces a new submenu "monitor" along with command
‘features’ to help user query for supported advertisement features. The
command will work with the new MGMT opcode
MGMT_OP_READ_ADV_MONITOR_FEATURES.

Tested on Atlas Chromebook with a sample stdout below:
[mgmt]# features
Supported features:
        None
Enabled features:
        None
Max number of handles: 32
Max number of patterns: 16
Handles list with 2 items:
        0x0001
        0x0002

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