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
This commit is contained in:
Dag-Erling Smørgrav 2002-12-16 14:22:59 +00:00
parent 6ed6884063
commit f0d91fb7ea

View File

@ -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++;
}