From 06912ebab3a2e8ca9643e79fabb50de1d445f4b4 Mon Sep 17 00:00:00 2001 From: Maksim Yevmenkin Date: Mon, 27 Nov 2006 22:52:11 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/bluetooth/bthidd/parser.y b/usr.sbin/bluetooth/bthidd/parser.y index 8f704a63f907..ca49059a035b 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; }