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:
parent
f7e684bbde
commit
4b6f390830
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user