mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
trezorhal: reply with winusb guid just for the main interface (0)
This commit is contained in:
parent
966d8cb4ce
commit
6acfc5d1b3
3
winusb.c
3
winusb.c
@ -115,7 +115,8 @@ static int winusb_control_vendor_request(usbd_device *usbd_dev,
|
||||
status = USBD_REQ_HANDLED;
|
||||
|
||||
} else if (((req->bmRequestType & USB_REQ_TYPE_RECIPIENT) == USB_REQ_TYPE_INTERFACE) &&
|
||||
(req->wIndex == WINUSB_REQ_GET_EXTENDED_PROPERTIES_OS_FEATURE_DESCRIPTOR)) {
|
||||
(req->wIndex == WINUSB_REQ_GET_EXTENDED_PROPERTIES_OS_FEATURE_DESCRIPTOR) &&
|
||||
(usb_descriptor_index(req->wValue) == winusb_wcid.functions[0].bInterfaceNumber)) {
|
||||
|
||||
*buf = (uint8_t*)(&guid);
|
||||
*len = MIN(*len, guid.header.dwLength);
|
||||
|
Loading…
Reference in New Issue
Block a user