[bluez/bluez] a69fa6: adapter: Fix advertising monitor on Linux 5.12-5.17

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: a69fa692b094347e3a1dbcd9198d426f671dec0c
      https://github.com/bluez/bluez/commit/a69fa692b094347e3a1dbcd9198d426f671dec0c
  Author: Andrew Drake <adrake@xxxxxxxxxx>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M src/adapter.c

  Log Message:
  -----------
  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





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux