]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbda3d12f22521e69d6784f99f8d4014b7f082563
tree5efba8a15ab5019fcf4bfdf7b9d1df40c344b048
parent875c2fe2fef63fc657fa1472fb48e963f700771e
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