mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 15:32:45 +00:00
Do not mark Bluetooth HID device as a "potential keyboard" if its descriptor
has items with CONSUMER page. For now only check for items with KEYBOARD page. This should prevent bthidd(8) from allocating vkbd(4) keyboard for Microsoft Bluetooth Explorer mouse. Reported by: Eric Anderson MFC after: 3 days
This commit is contained in:
parent
c65bb135d9
commit
06912ebab3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164700
@ -372,7 +372,7 @@ check_hid_device(hid_device_p d)
|
||||
case hid_input:
|
||||
/* Check if the device may send keystrokes */
|
||||
page = HID_PAGE(hi.usage);
|
||||
if (page == HUP_KEYBOARD || page == HUP_CONSUMER)
|
||||
if (page == HUP_KEYBOARD)
|
||||
d->keyboard = 1;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user