diff options
author | des <des@FreeBSD.org> | 2002-12-16 14:22:59 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-12-16 14:22:59 +0000 |
commit | fd3073ae3b7cdc5084f79a1cdedd0f2b1804e31b (patch) | |
tree | fb454f5604ba9bc8d3e1c7277c2844286b6571f5 /sys/dev/usb | |
parent | e7a267741e42cbc286537d87a42cff8a4781e3e6 (diff) | |
download | FreeBSD-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.c | 4 |
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++; } |