Parent: fbc85a500387e14082da55ad7dd854b53453fe44
Author: Michael Sun <michaelfsun@google.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-06-22 20:02:14
Tree: 8330a2c2c095285bd1427155cc96150ac1d699b2
btmgmt: Add command "add" into "monitor" btmgmt submenu This patch introduces a new command ‘add’ within "monitor" submenu to allow users to add advertisement monitor filters and get back monitor handlers. An event handler is also added to handle kernel issued MGMT_EV_ADV_MONITOR_ADDED events. The command will work with the new MGMT opcode MGMT_OP_ADD_ADV_MONITOR. This patch only adds support for adding pattern based filters. Tested on Atlas Chromebook with a sample stdout below: [mgmt]# add -p 0:1:c504 1:a:9a55beef Advertisement monitor with handle:0x0005 added [mgmt]# add -p 0:1:xxxx Failed to parse monitor patterns. Usage: add <-p|-h> [options...] Monitor Types: -p <ad_type:offset:pattern>... Pattern Monitor e.g.: add -p 0:1:c504 1:a:9a55beef
Diffstat
| M | tools/btmgmt.c | | | 124 | ++++++++++++++++++++++++++++++++++++++++ |
1 files changed, 124 insertions(+), 0 deletions(-)