mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Force keyboards which don't have the required
HID fields to use the USB BOOT protocol for now. PR: usb/181425 Submitted by: Andrey Zholos <aaz@q-fu.com> MFC after: 4 weeks
This commit is contained in:
parent
a66b2c65c3
commit
3a8f0c444a
1 changed files with 6 additions and 2 deletions
|
|
@ -1130,8 +1130,12 @@ ukbd_parse_hid(struct ukbd_softc *sc, const uint8_t *ptr, uint32_t len)
|
|||
HID_USAGE2(HUP_KEYBOARD, 0x00),
|
||||
hid_input, 0, &sc->sc_loc_events, &flags,
|
||||
&sc->sc_id_events)) {
|
||||
sc->sc_flags |= UKBD_FLAG_EVENTS;
|
||||
DPRINTFN(1, "Found keyboard events\n");
|
||||
if (flags & HIO_VARIABLE) {
|
||||
DPRINTFN(1, "Ignoring keyboard event control\n");
|
||||
} else {
|
||||
sc->sc_flags |= UKBD_FLAG_EVENTS;
|
||||
DPRINTFN(1, "Found keyboard event array\n");
|
||||
}
|
||||
}
|
||||
|
||||
/* figure out leds on keyboard */
|
||||
|
|
|
|||
Loading…
Reference in a new issue