summaryrefslogtreecommitdiff
path: root/usb
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-09-22 12:47:06 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-09-22 12:47:06 +0200
commit95729b7fd4de6704823ab8033593abe352134916 (patch)
treecf5873d0a987cef205ffd19237be93ead47dbeca /usb
parentd6af5ec06d3446970647876a70803e2e6444a19e (diff)
Handling SET_INTERFACE.
Diffstat (limited to 'usb')
-rw-r--r--usb/generic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/usb/generic.h b/usb/generic.h
index 136cbc4..87fe089 100644
--- a/usb/generic.h
+++ b/usb/generic.h
@@ -174,6 +174,13 @@ class USB_generic {
}
}
+ // SET_INTERFACE
+ if(bmRequestType == 0x01 && bRequest == 0x0b) {
+ // TODO: Don't ignore this request.
+ write(0, nullptr, 0);
+ return;
+ }
+
SetupStatus res = SetupStatus::Unhandled;
for(USB_class_driver*& driver : class_drivers) {