]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: disable filter dup when scan for adv monitor
authorYun-Hao Chung <howardchung@chromium.org>
Thu, 20 May 2021 05:12:09 +0000 (13:12 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:34 +0000 (07:12 +0200)
commit97c1c1d9b74bdee3ec22b1bc9c4cdff171053a42
tree811b546b13047d88f73df6db08dba557b0573500
parent112593792827b5db1ac05f68699321b4364faa02
Bluetooth: disable filter dup when scan for adv monitor

Disable duplicates filter when scanning for advertisement monitor for
the following reasons. The scanning includes active scan and passive
scan.

For HW pattern filtering (ex. MSFT), Realtek and Qualcomm controllers
ignore RSSI_Sampling_Period when the duplicates filter is enabled.

For SW pattern filtering, when we're not doing interleaved scanning, it
is necessary to disable duplicates filter, otherwise hosts can only
receive one advertisement and it's impossible to know if a peer is still
in range.

Signed-off-by: Yun-Hao Chung <howardchung@chromium.org>
Reviewed-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Manish Mandlik <mmandlik@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c