mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make uhid attach to devices that look like keyboards
or mice if the quirk which prevents higher level drivers from attaching is set. PR: usb/172458 Submitted by: Vitaly Magerya <vmagerya@gmail.com> Reviewed by: hselasky Approved by: cperciva MFC after: 1 week
This commit is contained in:
parent
73ea379e32
commit
68ea9fd7d6
1 changed files with 4 additions and 3 deletions
|
|
@ -691,10 +691,11 @@ uhid_probe(device_t dev)
|
|||
*/
|
||||
if ((uaa->info.bInterfaceClass == UICLASS_HID) &&
|
||||
(uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) &&
|
||||
((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) ||
|
||||
(uaa->info.bInterfaceProtocol == UIPROTO_MOUSE))) {
|
||||
(((uaa->info.bInterfaceProtocol == UIPROTO_BOOT_KEYBOARD) &&
|
||||
!usb_test_quirk(uaa, UQ_KBD_IGNORE)) ||
|
||||
((uaa->info.bInterfaceProtocol == UIPROTO_MOUSE) &&
|
||||
!usb_test_quirk(uaa, UQ_UMS_IGNORE))))
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
return (BUS_PROBE_GENERIC);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue