mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Make sure to only pickup hid_input items when parsing input reports.
As it turns out, libusbhid(3) also picks up hic_collection items even though we explicitly requested hid_input items only. Tested by: Buganini < buganini at gmail dot com > MFC after: 1 week
This commit is contained in:
parent
87ff4bceb6
commit
fc780ca17e
1 changed files with 2 additions and 1 deletions
|
|
@ -160,7 +160,8 @@ hid_interrupt(bthid_session_p s, uint8_t *data, int32_t len)
|
|||
|
||||
for (d = hid_start_parse(hid_device->desc, 1 << hid_input, -1);
|
||||
hid_get_item(d, &h) > 0; ) {
|
||||
if ((h.flags & HIO_CONST) || (h.report_ID != report_id))
|
||||
if ((h.flags & HIO_CONST) || (h.report_ID != report_id) ||
|
||||
(h.kind != hid_input))
|
||||
continue;
|
||||
|
||||
page = HID_PAGE(h.usage);
|
||||
|
|
|
|||
Loading…
Reference in a new issue