]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Bluetooth: hci_qca: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for QCA UART Radio
authorRocky Liao <rjliao@codeaurora.org>
Wed, 21 Aug 2019 06:23:39 +0000 (14:23 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Sep 2019 15:27:22 +0000 (17:27 +0200)
QCA UART Bluetooth controllers can do both LE scan and BR/EDR inquiry
at once, need to set HCI_QUIRK_SIMULTANEOUS_DISCOVERY quirk.

Signed-off-by: Rocky Liao <rjliao@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c

index 0cf5320716640d94c2459fc8fe1c61263706fa82..15753f6bce80bf719f88ae9345562a9067da3287 100644 (file)
@@ -1242,6 +1242,11 @@ static int qca_setup(struct hci_uart *hu)
        /* Patch downloading has to be done without IBS mode */
        clear_bit(QCA_IBS_ENABLED, &qca->flags);
 
+       /* Enable controller to do both LE scan and BR/EDR inquiry
+        * simultaneously.
+        */
+       set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);
+
        if (qca_is_wcn399x(soc_type)) {
                bt_dev_info(hdev, "setting up wcn3990");