You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
usb-device-hid: MouseInterface reports bInterfaceProtocol 1 (keyboard) instead of 2 #1176
MouseInterface is enumerated as a boot keyboard, its interface descriptor has bInterfaceSubClass 1 and bInterfaceProtocol 1, but it should be protocol 2 (mouse).
Cause
HIDInterface.protocol stores both the descriptor protocol and the runtime protocol mode. desc_cfg() ends with self.protocol = 1 (report mode), and Device.config() calls desc_cfg() twice (once to measure the length, once to write). So the second call writes 1 for every boot interface.
Activity