Skip to content

Commit b0367e8

Browse files
Claire Changksacilotto
authored andcommitted
Bluetooth: hci_h5: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY for btrtl
BugLink: https://bugs.launchpad.net/bugs/1920235 [ Upstream commit 7f9f2c3 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
1 parent eb33924 commit b0367e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/bluetooth/hci_h5.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,11 @@ static int h5_btrtl_setup(struct h5 *h5)
894894
/* Give the device some time before the hci-core sends it a reset */
895895
usleep_range(10000, 20000);
896896

897+
/* Enable controller to do both LE scan and BR/EDR inquiry
898+
* simultaneously.
899+
*/
900+
set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &h5->hu->hdev->quirks);
901+
897902
out_free:
898903
btrtl_free(btrtl_dev);
899904

0 commit comments

Comments
 (0)