usbdev/composite: winusb devices are not automatically recognized by windows

Description bMS_VendorCode is incorrectly configured. Change it to
USB_REQ_GETMSFTOSDESCRIPTOR(0xee), which is the same as the request
processing logic for GET_MS_DESCRIPTOR in the code

Signed-off-by: sunkun3 <sunkun3@xiaomi.com>
This commit is contained in:
sunkun3 2023-07-26 16:48:33 +08:00 committed by Xiang Xiao
parent 052d46c690
commit 7ba9236c54

View File

@ -531,7 +531,7 @@ static int composite_setup(FAR struct usbdevclass_driver_s *driver,
static const uint8_t msft_response[16] =
{
'M', 0, 'S', 0, 'F', 0, 'T', 0, '1', 0, '0', 0,
'0', 0, 0xff, 0
'0', 0, USB_REQ_GETMSFTOSDESCRIPTOR, 0
};
buf->len = 18;