1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 08:30:17 +02:00

atusb/fw/usb/usb.c (handle_setup): also pass interface-level GET_DESCRIPTOR to get_descriptor

This commit is contained in:
Werner Almesberger 2015-04-12 04:16:23 -03:00
parent f7e684bbde
commit 4b6f390830

View File

@ -106,6 +106,7 @@ bool handle_setup(const struct setup_request *setup)
set_addr(setup->wValue); set_addr(setup->wValue);
break; break;
case FROM_DEVICE(GET_DESCRIPTOR): case FROM_DEVICE(GET_DESCRIPTOR):
case FROM_INTERFACE(GET_DESCRIPTOR):
if (!get_descriptor(setup->wValue >> 8, setup->wValue, if (!get_descriptor(setup->wValue >> 8, setup->wValue,
setup->wLength)) setup->wLength))
return 0; return 0;