summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2006-11-27 22:52:11 +0000
committeremax <emax@FreeBSD.org>2006-11-27 22:52:11 +0000
commit964f1eb261205cb8d846bf8fbd4bf900713139a5 (patch)
tree03b9addb5194ab8a44c8dee383231824a819f499 /usr.sbin/bluetooth
parent04681b9d6f6256d3d9c21f3ef80f8db669c1d656 (diff)
downloadFreeBSD-src-964f1eb261205cb8d846bf8fbd4bf900713139a5.zip
FreeBSD-src-964f1eb261205cb8d846bf8fbd4bf900713139a5.tar.gz
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
Diffstat (limited to 'usr.sbin/bluetooth')
-rw-r--r--usr.sbin/bluetooth/bthidd/parser.y2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud