From 4b6f390830dda49bf712f689239c9ecbd98fb2be Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 12 Apr 2015 04:16:23 -0300 Subject: [PATCH] atusb/fw/usb/usb.c (handle_setup): also pass interface-level GET_DESCRIPTOR to get_descriptor --- atusb/fw/usb/usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/atusb/fw/usb/usb.c b/atusb/fw/usb/usb.c index f0fe51a..20b4d5f 100644 --- a/atusb/fw/usb/usb.c +++ b/atusb/fw/usb/usb.c @@ -106,6 +106,7 @@ bool handle_setup(const struct setup_request *setup) set_addr(setup->wValue); break; case FROM_DEVICE(GET_DESCRIPTOR): + case FROM_INTERFACE(GET_DESCRIPTOR): if (!get_descriptor(setup->wValue >> 8, setup->wValue, setup->wLength)) return 0;