Bluetooth: Use BTUSB_BROKEN_ISOC flag for CSR USB sniffer devices
Instead of setting data->isoc manually, use BTUSB_BROKEN_ISOC to indicate that isochronous endpoints are not needed for CSR USB sniffer devices. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
		
					parent
					
						
							
								74292d5ac2
							
						
					
				
			
			
				commit
				
					
						4f64fa807a
					
				
			
		
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -230,10 +230,12 @@ static const struct usb_device_id blacklist_table[] = {
 | 
				
			||||||
	{ USB_DEVICE(0x08fd, 0x0002), .driver_info = BTUSB_IGNORE },
 | 
						{ USB_DEVICE(0x08fd, 0x0002), .driver_info = BTUSB_IGNORE },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* CSR BlueCore Bluetooth Sniffer */
 | 
						/* CSR BlueCore Bluetooth Sniffer */
 | 
				
			||||||
	{ USB_DEVICE(0x0a12, 0x0002), .driver_info = BTUSB_SNIFFER },
 | 
						{ USB_DEVICE(0x0a12, 0x0002),
 | 
				
			||||||
 | 
						  .driver_info = BTUSB_SNIFFER | BTUSB_BROKEN_ISOC },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Frontline ComProbe Bluetooth Sniffer */
 | 
						/* Frontline ComProbe Bluetooth Sniffer */
 | 
				
			||||||
	{ USB_DEVICE(0x16d3, 0x0002), .driver_info = BTUSB_SNIFFER },
 | 
						{ USB_DEVICE(0x16d3, 0x0002),
 | 
				
			||||||
 | 
						  .driver_info = BTUSB_SNIFFER | BTUSB_BROKEN_ISOC },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Intel Bluetooth device */
 | 
						/* Intel Bluetooth device */
 | 
				
			||||||
	{ USB_DEVICE(0x8087, 0x07dc), .driver_info = BTUSB_INTEL },
 | 
						{ USB_DEVICE(0x8087, 0x07dc), .driver_info = BTUSB_INTEL },
 | 
				
			||||||
| 
						 | 
					@ -1804,8 +1806,6 @@ static int btusb_probe(struct usb_interface *intf,
 | 
				
			||||||
		/* New sniffer firmware has crippled HCI interface */
 | 
							/* New sniffer firmware has crippled HCI interface */
 | 
				
			||||||
		if (le16_to_cpu(udev->descriptor.bcdDevice) > 0x997)
 | 
							if (le16_to_cpu(udev->descriptor.bcdDevice) > 0x997)
 | 
				
			||||||
			set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
 | 
								set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
 | 
				
			||||||
 | 
					 | 
				
			||||||
		data->isoc = NULL;
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (id->driver_info & BTUSB_INTEL_BOOT) {
 | 
						if (id->driver_info & BTUSB_INTEL_BOOT) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue