Dear friends,

This patch fixes a problem where CCID readers with auto speed detection
and baud rate matrix were locked to 10753 bauds. 

Now libccid assumes that these readers can connect to card speed if
smartcard features announce CCID_CLASS_AUTO_BAUD.

My knowledge in libccid is poor, this is only a first try, any
comments? 

Index: Drivers/ccid/src/ifdhandler.c
===================================================================
--- Drivers/ccid/src/ifdhandler.c       (révision 5706)
+++ Drivers/ccid/src/ifdhandler.c       (copie de travail)
@@ -813,7 +813,9 @@
                                if ((NULL == 
ccid_desc->arrayOfSupportedDataRates)
                                        /* or explicitely support it */
                                        || find_baud_rate(card_baudrate,
-                                               
ccid_desc->arrayOfSupportedDataRates))
+                                               
ccid_desc->arrayOfSupportedDataRates)
+          /* sartcard reader supports auto baud */
+          || (ccid_desc->dwFeatures & CCID_CLASS_AUTO_BAUD))
                                {
                                        pps[1] |= 0x10; /* PTS1 presence */
                                        pps[2] = 
atr.ib[0][ATR_INTERFACE_BYTE_TA].value;

Kind regards,
-- 
                  Jean-Michel Pouré - Gooze - http://www.gooze.eu

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to