mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atusb/fw/usb/usb.c (handle_setup): also pass interface-level GET_DESCRIPTOR to get_descriptor
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user