Re: [PATCH v3] Bluetooth: btusb: Fix and detect most of the Chinese Bluetooth controllers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/07/2020 21:21, Ismael Ferreras Morezuelas wrote:
> @@ -4001,11 +4053,13 @@ static int btusb_probe(struct usb_interface *intf,
>  		if (bcdDevice < 0x117)
>  			set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks);
>  
> +		/* This must be set first in case we disable it for fakes */
> +		set_bit(HCI_QUIRK_SIMULTANEOUS_DISCOVERY, &hdev->quirks);
> +
>  		/* Fake CSR devices with broken commands */
> -		if (bcdDevice <= 0x100 || bcdDevice == 0x134)
> +		if (udev->descriptor.idVendor  == 0x0a12 &&
> +		    udev->descriptor.idProduct == 0x0001)
>  			hdev->setup = btusb_setup_csr;

Noticed that I'm probably missing a few le16_to_cpu() there,
from what I've seen in other places. I'll keep it in mind.

Self-review. :)



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux