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)
commitc32d624640fd2254ec40e76e4a176e75de77ee09
tree811b546b13047d88f73df6db08dba557b0573500
parent79699a7056ff784524d1baa387f30ddf98e14a1c
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