Bluetooth: hci_h5: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for btrtl
authorClaire Chang <tientzu@chromium.org>
Tue, 19 Jan 2021 11:47:00 +0000 (19:47 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 25 Jan 2021 15:02:09 +0000 (16:02 +0100)
Realtek Bluetooth controllers can do both LE scan and BR/EDR inquiry
at once, need to set HCI_QUIRK_SIMULTANEOUS_DISCOVERY quirk.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_h5.c

index fb9817f97d45c04f870593648edcd32012ae5d2c..27e96681d5838decfd16ce0cd24679f144ac7cb0 100644 (file)
@@ -906,6 +906,11 @@ static int h5_btrtl_setup(struct h5 *h5)
        /* Give the device some time before the hci-core sends it a reset */
        usleep_range(10000, 20000);
 
+       /* Enable controller to do both LE scan and BR/EDR inquiry
+        * simultaneously.
+        */
+       set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &h5->hu->hdev->quirks);
+
 out_free:
        btrtl_free(btrtl_dev);