Bluetooth: Update Adv monitor count upon removal
authorMiao-chen Chou <mcchou@chromium.org>
Fri, 18 Sep 2020 03:11:48 +0000 (11:11 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Sep 2020 06:11:59 +0000 (08:11 +0200)
commitc88e397968e3ada66041527222a648485f51ac54
treecef9afc8eb85a044b88befecad77245d81c30b4a
parent81ebea5352e5738f50e23a3897428951fe1f8448
Bluetooth: Update Adv monitor count upon removal

This fixes the count of Adv monitor upon monitor removal.

The following test was performed.
- Start two btmgmt consoles, issue a btmgmt advmon-remove command on one
console and observe a MGMT_EV_ADV_MONITOR_REMOVED event on the other.

Signed-off-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Howard Chung <howardchung@google.com>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c