The number of USB devices I have are growing, so I bought a 7-port Belkin hub.
I plugged my USB reader into it, and got the following error:

ccid_usb.c:419:WriteUSB usb_bulk_write(002/026): Invalid argument


So I appllied the following patch in ccid-0.9.2/src/ccid_ifdhandler.h

----------------------
--- ccid_ifdhandler.h.~1~       2004-07-29 16:12:35.000000000 -0400
+++ ccid_ifdhandler.h   2004-11-02 14:41:04.000000000 -0500
@@ -43,7 +43,7 @@
  * The maximum number of readers is also limited in pcsc-lite (16 by default)
  * see the definition of PCSCLITE_MAX_READERS_CONTEXTS in src/PCSC/pcsclite.h
  */
-#define CCID_DRIVER_MAX_READERS 16
+#define CCID_DRIVER_MAX_READERS 32
  
 /*
  * CCID driver specific functions

--------------------

and changed pcsc-lite-1.2.9-beta6/src/PCSC/pcsclite.h
--------------------

--- pcsclite.h.~1~      2004-10-19 13:45:23.000000000 -0400
+++ pcsclite.h  2004-11-02 14:43:00.000000000 -0500
@@ -269,7 +269,7 @@
 /* Maximum channels on an application context */
 #define PCSCLITE_MAX_APPLICATION_CONTEXT_CHANNELS      16
 /* Maximum readers context (a slot is count as a reader) */
-#define PCSCLITE_MAX_READERS_CONTEXTS                  16
+#define PCSCLITE_MAX_READERS_CONTEXTS                  32
  
 /* PCSCLITE_MAX_READERS is deprecated
  * use PCSCLITE_MAX_READERS_CONTEXTS instead */
----------------------


And everything worked great. I'm grateful for the note in ccid_ifdhandler.h. 
This make the fix trivial. Thanks!
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to