]> 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)
commit0642629989e48dcfccb0906c8df8e748adb9dd77
tree811b546b13047d88f73df6db08dba557b0573500
parentc6847eeb42ecb8ee9cd380d630d3f5d4d08b61d2
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