adv_monitor: Issue Remove Adv Monitor mgmt call
authorAlain Michaud <alainm@chromium.org>
Sat, 31 Oct 2020 00:52:56 +0000 (17:52 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commit0c744efb355a4e454bc4a8412d4a27b18efe2670
treed33147d878d4090d57699b83796e005d58242b05
parentbdb16d9b1624c23229478263e84deacae347a486
adv_monitor: Issue Remove Adv Monitor mgmt call

This calls Remove Adv Monitor command to kernel and handles the callback
during a monitor removal initiated by a D-Bus client. This also
registers callback for getting notified on Adv Monitor Removed event, so
that the Adv monitor manager can invalidate the monitor by calling
Release() on its proxy.

The following tests were performed.
- In bluetoothctl console, add a monitor and remove the monitor by its
index and verify the removal in both the output of btmgmt and syslog.
- In bluetoothctl console, add a monitor, remove the monitor via
btmgmt and verify the removal in syslog.

Change-Id: Ib51b9e6ce76e816e66bb7248e48be7364ca9812e
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adv_monitor.c
tools/obex-client-tool.c
tools/obex-server-tool.c
tools/rfcomm.c
tools/sco-tester.c