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

CVS User rousseau ludovic.rousseau@free.fr
Wed, 27 Apr 2005 14:08:36 +0000


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

Modified Files:
	ifdhandler.c 
Log Message:
IFDHSetProtocolParameters(): we do not check if (card_baudrate <=
ccid_desc->dwMaxDataRate) since find_baud_rate() will tell us if the
speed is supported or not by the reader


--- /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c	2005/04/26 14:33:43	1.69
+++ /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c	2005/04/27 14:08:35	1.70
@@ -17,7 +17,7 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 */
 
-/* $Id: ifdhandler.c,v 1.69 2005/04/26 14:33:43 rousseau Exp $ */
+/* $Id: ifdhandler.c,v 1.70 2005/04/27 14:08:35 rousseau Exp $ */
 
 #include <stdio.h>
 #include <string.h>
@@ -479,10 +479,8 @@
 			default_baudrate = (unsigned int) (1000 * ccid_desc->dwDefaultClock
 				* ATR_DEFAULT_D / ATR_DEFAULT_F);
 
-			/* if the reader is fast enough */
-			if ((card_baudrate <= ccid_desc->dwMaxDataRate)
-				/* and the card does not try to lower the default speed */
-				&& (card_baudrate > default_baudrate ))
+			/* if the card does not try to lower the default speed */
+			if (card_baudrate > default_baudrate)
 			{
 				if (find_baud_rate(card_baudrate,
 					ccid_desc->arrayOfSupportedDataRates))