From 95729b7fd4de6704823ab8033593abe352134916 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 22 Sep 2012 12:47:06 +0200 Subject: Handling SET_INTERFACE. --- usb/generic.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usb') 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) { -- cgit v1.2.3