From c623ad7da04f58a01c6323f6592ce7e79f10b790 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 6 Feb 2025 22:34:47 +0200 Subject: [PATCH] Kernel: Use correct USB endpoint field to determine interval I was using the wrong endpoint descriptor field which caused intervals to be messed up. --- kernel/kernel/USB/XHCI/Device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/USB/XHCI/Device.cpp b/kernel/kernel/USB/XHCI/Device.cpp index fe2267bc..9c1d384f 100644 --- a/kernel/kernel/USB/XHCI/Device.cpp +++ b/kernel/kernel/USB/XHCI/Device.cpp @@ -156,7 +156,7 @@ namespace Kernel // 6.2.3.6 Interval static uint32_t determine_interval(const USBEndpointDescriptor& endpoint_descriptor, USB::SpeedClass speed_class) { - auto ep_type = static_cast(endpoint_descriptor.bDescriptorType & 0x03); + const auto ep_type = static_cast(endpoint_descriptor.bmAttributes & 0x03); switch (speed_class) {