Kernel: "Recognize" USB wireless controllers
Apparently USB device descriptor is allowed to have class WirelessController if and only if it is a bluetooth controller(?) :D Now we print ENOTSUP instead of EINVAL when encountering these
This commit is contained in:
@@ -30,6 +30,7 @@ namespace Kernel
|
||||
Hub = 0x09,
|
||||
BillboardDeviceClass = 0x11,
|
||||
DiagnosticDevice = 0xDC,
|
||||
WirelessController = 0xE0,
|
||||
Miscellaneous = 0xEF,
|
||||
VendorSpecific = 0xFF,
|
||||
};
|
||||
|
||||
@@ -134,6 +134,9 @@ namespace Kernel
|
||||
case USB::DeviceBaseClass::DiagnosticDevice:
|
||||
dprintln_if(DEBUG_USB, "Found DiagnosticDevice device");
|
||||
return BAN::Error::from_errno(ENOTSUP);
|
||||
case USB::DeviceBaseClass::WirelessController:
|
||||
dprintln_if(DEBUG_USB, "Found WirelessController device");
|
||||
return BAN::Error::from_errno(ENOTSUP);
|
||||
case USB::DeviceBaseClass::Miscellaneous:
|
||||
dprintln_if(DEBUG_USB, "Found Miscellaneous device");
|
||||
return BAN::Error::from_errno(ENOTSUP);
|
||||
|
||||
Reference in New Issue
Block a user