mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
USB: gadget: android: Specify USB_CLASS_COMM in device descriptor if using RNDIS
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
committed by
Colin Cross
parent
892533d3ee
commit
70b4a7eed9
@@ -100,7 +100,14 @@ static struct usb_device_descriptor device_desc = {
|
||||
.bLength = sizeof(device_desc),
|
||||
.bDescriptorType = USB_DT_DEVICE,
|
||||
.bcdUSB = __constant_cpu_to_le16(0x0200),
|
||||
#ifdef CONFIG_USB_ANDROID_RNDIS
|
||||
/* we need to specify the class in the device descriptor
|
||||
* if we are using RNDIS.
|
||||
*/
|
||||
.bDeviceClass = USB_CLASS_COMM,
|
||||
#else
|
||||
.bDeviceClass = USB_CLASS_PER_INTERFACE,
|
||||
#endif
|
||||
.idVendor = __constant_cpu_to_le16(VENDOR_ID),
|
||||
.idProduct = __constant_cpu_to_le16(PRODUCT_ID),
|
||||
.bcdDevice = __constant_cpu_to_le16(0xffff),
|
||||
|
||||
Reference in New Issue
Block a user