Commit: a69fa692b094347e3a1dbcd9198d426f671dec0c
Parent: 163de8e231e6e138ebfea710df8211f22d4b9b4e
Author: Andrew Drake <adrake@adrake.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-07-14 00:27:32
Tree: 360f941f485b7dccd777c11dc80b1cf2c9540638

adapter: Fix advertising monitor on Linux 5.12-5.17 The existing code assumes that, if a device supports advertising monitor offload, DEVICE_FOUND events can be ignored since the kernel will send ADV_MONITOR_DEVICE_FOUND events instead. Unfortunately, these new events were added in 5.18, but offload was added in 5.12. This patch adds a check on the MGMT API version so we can process the older DEVICE_FOUND events when the new events are not supported. Fixes: https://github.com/bluez/bluez/issues/357

Diffstat

M src/adapter.c | 4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)

View Full Diff | Patch