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:
2026-08-23 14:21:42 +03:00
parent 17813f3fcf
commit ace5edfda2
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ namespace Kernel
Hub = 0x09,
BillboardDeviceClass = 0x11,
DiagnosticDevice = 0xDC,
WirelessController = 0xE0,
Miscellaneous = 0xEF,
VendorSpecific = 0xFF,
};
+3
View File
@@ -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);