This patch updates the USB IrDA driver to take into account that the
kernel may no longer store altsetting entries in numerical order.
The driver only needed one change; this was a simple matter of using the
entry corresponding to the altsetting that was just installed.
Alan Stern
===== drivers/net/irda/irda-usb.c 1.47 vs edited =====
--- 1.47/drivers/net/irda/irda-usb.c Wed Apr 21 01:11:21 2004
+++ edited/drivers/net/irda/irda-usb.c Mon May 3 10:37:59 2004
@@ -1421,7 +1421,7 @@
}
/* Find our endpoints */
- interface = &intf->altsetting[0];
+ interface = intf->cur_altsetting;
if(!irda_usb_parse_endpoints(self, interface->endpoint,
interface->desc.bNumEndpoints)) {
ERROR("%s(), Bogus endpoints...\n", __FUNCTION__);
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel