]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Bluetooth: btrtl: Set msft ext address filter quirk for RTL8852B
authorHilda Wu <hildawu@realtek.com>
Thu, 29 Aug 2024 08:40:05 +0000 (16:40 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Sep 2024 17:06:24 +0000 (13:06 -0400)
For tracking multiple devices concurrently with a condition.
The patch enables the HCI_QUIRK_USE_MSFT_EXT_ADDRESS_FILTER quirk
on RTL8852B controller.

The quirk setting is based on commit 9e14606d8f38 ("Bluetooth: msft:
Extended monitor tracking by address filter")

With this setting, when a pattern monitor detects a device, this
feature issues an address monitor for tracking that device. Let the
original pattern monitor keep monitor new devices.

Signed-off-by: Hilda Wu <hildawu@realtek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btrtl.c

index 4c0f551a9975e1b8059e740995324df77e3b8a58..2d95b3ea046dff1b8e02e33b6fb4971292a4a4ec 100644 (file)
@@ -1308,6 +1308,7 @@ void btrtl_set_quirks(struct hci_dev *hdev, struct btrtl_device_info *btrtl_dev)
                        btrealtek_set_flag(hdev, REALTEK_ALT6_CONTINUOUS_TX_CHIP);
 
                if (btrtl_dev->project_id == CHIP_ID_8852A ||
+                   btrtl_dev->project_id == CHIP_ID_8852B ||
                    btrtl_dev->project_id == CHIP_ID_8852C)
                        set_bit(HCI_QUIRK_USE_MSFT_EXT_ADDRESS_FILTER, &hdev->quirks);