[Pcsclite-cvs-commit] CVS Drivers/ccid/src

CVS User rousseau ludovic.rousseau@free.fr
Fri, 25 Feb 2005 10:19:01 -0700


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv24984

Modified Files:
	ifdhandler.c 
Log Message:
IFDHSetProtocolParameters(): calculate the value of pps[2] (TA1) even if
CCID_CLASS_AUTO_PPS_CUR bit is set and no PPS will be generated by the
driver since this value is also used later by the SetParameters()


--- /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c	2005/02/25 17:14:46	1.55
+++ /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c	2005/02/25 17:19:00	1.56
@@ -17,7 +17,7 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-/* $Id: ifdhandler.c,v 1.55 2005/02/25 17:14:46 rousseau Exp $ */
+/* $Id: ifdhandler.c,v 1.56 2005/02/25 17:19:00 rousseau Exp $ */
 
 #include <stdio.h>
 #include <string.h>
@@ -446,9 +446,8 @@
 	}
 	else
 	{
-		/* PPS not negociated by reader, and TA1 present */
-		if (atr.ib[0][ATR_INTERFACE_BYTE_TA].present &&
-			! (ccid_desc->dwFeatures & CCID_CLASS_AUTO_PPS_CUR))
+		/* TA1 present */
+		if (atr.ib[0][ATR_INTERFACE_BYTE_TA].present)
 		{
 			unsigned int card_baudrate;
 			unsigned int default_baudrate;