From f0d91fb7eab2fb1da34fd09e4731a34d2378fbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 16 Dec 2002 14:22:59 +0000 Subject: [PATCH] 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 --- sys/dev/usb/ulpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c index 1620c388346..d030293abf3 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++; }