Bluetooth: Add handler of MGMT_OP_REMOVE_ADV_MONITOR
authorMiao-chen Chou <mcchou@chromium.org>
Wed, 17 Jun 2020 14:39:15 +0000 (16:39 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 18 Jun 2020 10:11:41 +0000 (13:11 +0300)
commitbd2fbc6cb815b5171facb42526f6db206d920e13
tree0bc8ce69afa9c689835625e66ae232244ecf0257
parentb139553db5cd940d66095fb97de1727e9a19369f
Bluetooth: Add handler of MGMT_OP_REMOVE_ADV_MONITOR

This adds the request handler of MGMT_OP_REMOVE_ADV_MONITOR command.
Note that the controller-based monitoring is not yet in place. This
removes the internal monitor(s) without sending HCI traffic, so the
request returns immediately.

The following test was performed.
- Issue btmgmt advmon-remove with valid and invalid handles.

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