adv_monitor: Receive the Device Found/Lost events
authorManish Mandlik <mmandlik@google.com>
Sat, 20 Nov 2021 15:29:38 +0000 (07:29 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
commit40c29f9b4ddcf3016fe55e0112241ce02c97f119
tree287d59e7ceb9255a2eb953d23331bd97b228909b
parent4a25cf80a74faea7cdbd25116740090a4b0b98be
adv_monitor: Receive the Device Found/Lost events

This patch registers callback functions to receive the Advertisement
Monitor Device Found and Device Lost events. It also disables software
based filtering whenever controller offloading support is available.

Test performed:
- Verified by logs that the MSFT Monitor Device is received from the
  controller and the bluetoothd is notified whenever the controller
  starts/stops monitoring a device.

Reviewed-by: Miao-chen Chou <mcchou@google.com>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adapter.c
src/adapter.h
src/adv_monitor.c
src/adv_monitor.h