From 964f1eb261205cb8d846bf8fbd4bf900713139a5 Mon Sep 17 00:00:00 2001 From: emax Date: Mon, 27 Nov 2006 22:52:11 +0000 Subject: 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 --- usr.sbin/bluetooth/bthidd/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bluetooth/bthidd/parser.y b/usr.sbin/bluetooth/bthidd/parser.y index 8f704a6..ca49059 100644 --- a/usr.sbin/bluetooth/bthidd/parser.y +++ b/usr.sbin/bluetooth/bthidd/parser.y @@ -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; } -- cgit v1.1