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:
Maksim Yevmenkin 2006-11-27 22:52:11 +00:00
parent c65bb135d9
commit 06912ebab3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164700

View File

@ -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;
}