composite: Use the correct USB dual-speed descriptor when enabling IAD

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-08-08 14:20:29 +08:00 committed by Xiang Xiao
parent 114d641f4a
commit dc0b0d6b4c
1 changed files with 6 additions and 0 deletions

View File

@ -162,9 +162,15 @@ static const struct usb_qualdesc_s g_qualdesc =
LSBYTE(0x0200),
MSBYTE(0x0200)
},
# ifdef CONFIG_COMPOSITE_IAD
USB_CLASS_MISC, /* classid */
2, /* subclass */
1, /* protocol */
# else
USB_CLASS_VENDOR_SPEC, /* classid */
0, /* subclass */
0, /* protocol */
# endif
CONFIG_COMPOSITE_EP0MAXPACKET, /* mxpacketsize */
COMPOSITE_NCONFIGS, /* nconfigs */
0, /* reserved */