Bluetooth: Add handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR
authorMiao-chen Chou <mcchou@chromium.org>
Wed, 17 Jun 2020 14:39:14 +0000 (16:39 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 18 Jun 2020 10:11:24 +0000 (13:11 +0300)
commitb139553db5cd940d66095fb97de1727e9a19369f
tree5efba8a15ab5019fcf4bfdf7b9d1df40c344b048
parente5e1e7fd470ccf2eb38ab7fb5a3ab0fc4792fe53
Bluetooth: Add handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR

This adds the request handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR command.
Note that the controller-based monitoring is not yet in place. This tracks
the content of the monitor without sending HCI traffic, so the request
returns immediately.

The following manual test was performed.
- Issue btmgmt advmon-add with valid and invalid inputs.
- Issue btmgmt advmon-add more the allowed number of monitors.

Signed-off-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c