]> xenbits.xensource.com Git - seabios.git/commit
usb-hid: Improve max packet size checking
authorKevin O'Connor <kevin@koconnor.net>
Fri, 6 Mar 2020 13:21:37 +0000 (08:21 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 6 Mar 2020 13:24:16 +0000 (08:24 -0500)
commit81ddc4c6ecafe2b7ca2ee4ac78d405272208fe86
treec3b2ad55209f6bcb2af8763d303120854cedad68
parent76551856b28d227cb0386a1ab0e774329b941f7d
usb-hid: Improve max packet size checking

Some USB keyboards report 9 or 10-byte max packet sizes instead of the
8-byte max specified by the USB HID spec.  Increase the available size
and simplify the boundary checks.

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/usb-hid.c