[Pcsclite-cvs-commit] r1886 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at costa.debian.org
Tue Feb 28 08:39:09 UTC 2006
Author: rousseau
Date: 2006-02-28 08:39:08 +0000 (Tue, 28 Feb 2006)
New Revision: 1886
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Log:
IFDHSetProtocolParameters(): if the card is in specific mode and request
a speed not supported by the reader we return IFD_COMMUNICATION_ERROR
instead of IFD_PROTOCOL_NOT_SUPPORTED so that pcsc-lite do not try to
talk to the card
Modified: trunk/Drivers/ccid/src/ifdhandler.c
===================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c 2006-02-28 08:09:12 UTC (rev 1885)
+++ trunk/Drivers/ccid/src/ifdhandler.c 2006-02-28 08:39:08 UTC (rev 1886)
@@ -507,7 +507,7 @@
* only the baud rate specified in TA1 but reader does not
* support this value. Reject the card. */
if (atr.ib[1][ATR_INTERFACE_BYTE_TA].present)
- return IFD_PROTOCOL_NOT_SUPPORTED;
+ return IFD_COMMUNICATION_ERROR;
}
}
else
More information about the Pcsclite-cvs-commit
mailing list