summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-12-16 14:22:59 +0000
committerdes <des@FreeBSD.org>2002-12-16 14:22:59 +0000
commitfd3073ae3b7cdc5084f79a1cdedd0f2b1804e31b (patch)
treefb454f5604ba9bc8d3e1c7277c2844286b6571f5 /sys/dev/usb
parente7a267741e42cbc286537d87a42cff8a4781e3e6 (diff)
downloadFreeBSD-src-fd3073ae3b7cdc5084f79a1cdedd0f2b1804e31b.zip
FreeBSD-src-fd3073ae3b7cdc5084f79a1cdedd0f2b1804e31b.tar.gz
Ignore IEEE1284 descriptors when looking for bidirectional mode. We don't
really know how to talk IEEE1284, so attaching to that interface makes the printer unusable. Approved by: joe
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ulpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c
index 1620c38..d030293 100644
--- a/sys/dev/usb/ulpt.c
+++ b/sys/dev/usb/ulpt.c
@@ -246,8 +246,8 @@ USB_ATTACH(ulpt)
id->bInterfaceNumber == ifcd->bInterfaceNumber) {
if (id->bInterfaceClass == UICLASS_PRINTER &&
id->bInterfaceSubClass == UISUBCLASS_PRINTER &&
- (id->bInterfaceProtocol == UIPROTO_PRINTER_BI ||
- id->bInterfaceProtocol == UIPROTO_PRINTER_1284))
+ (id->bInterfaceProtocol == UIPROTO_PRINTER_BI /* ||
+ id->bInterfaceProtocol == UIPROTO_PRINTER_1284 */))
goto found;
altno++;
}
OpenPOWER on IntegriCloud