summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhidev.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-05-14 12:00:05 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-05-14 12:00:05 +0000
commite58dea0638ed14f747e547f4c6ee5161aaf156cc (patch)
tree42fb4065bf34e841e35a90e65d12f0cd10bb9c10 /sys/dev/usb/uhidev.c
parent8ae05df04c7122306d1cf9d2eacde3fab73f75fb (diff)
Add a quirk to force the Wi-spy spectrum analyser to attach as ugen.
It claims to be a HID device, but it's not really one. ok miod@, jsg@.
Diffstat (limited to 'sys/dev/usb/uhidev.c')
-rw-r--r--sys/dev/usb/uhidev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c
index 6c8a77ea356..ef45c247404 100644
--- a/sys/dev/usb/uhidev.c
+++ b/sys/dev/usb/uhidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhidev.c,v 1.13 2006/03/07 04:41:19 krw Exp $ */
+/* $OpenBSD: uhidev.c,v 1.14 2006/05/14 12:00:04 matthieu Exp $ */
/* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -96,6 +96,8 @@ USB_MATCH(uhidev)
id = usbd_get_interface_descriptor(uaa->iface);
if (id == NULL || id->bInterfaceClass != UICLASS_HID)
return (UMATCH_NONE);
+ if (usbd_get_quirks(uaa->device)->uq_flags & UQ_BAD_HID)
+ return (UMATCH_NONE);
if (uaa->matchlvl)
return (uaa->matchlvl);
return (UMATCH_IFACECLASS_GENERIC);