]> 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)
commit6faaa39ce5293c41e987aaf54378da347f080086
tree5efba8a15ab5019fcf4bfdf7b9d1df40c344b048
parent6641289a0a3d6503eeaac6582dff9739fc4007ad
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