[Pcsclite-cvs-commit] r6782 - trunk/Drivers/ccid/src
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Thu Oct 24 08:51:11 UTC 2013
Author: rousseau
Date: 2013-10-24 08:51:11 +0000 (Thu, 24 Oct 2013)
New Revision: 6782
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Log:
Limit GemCore SIM PRO hack to only the specific reader
If the ATR fails we should mark the card as absent only for the GemCore
SIM PRO.
This reader do not manage slot status for the second slot and a
corresponding hack is present in function IFDHICCPresence() around line
1713.
Modified: trunk/Drivers/ccid/src/ifdhandler.c
===================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c 2013-10-19 17:55:18 UTC (rev 6781)
+++ trunk/Drivers/ccid/src/ifdhandler.c 2013-10-24 08:51:11 UTC (rev 6782)
@@ -1182,8 +1182,9 @@
if (return_value != IFD_SUCCESS)
{
/* used by GemCore SIM PRO: no card is present */
- get_ccid_descriptor(reader_index)->dwSlotStatus
- = IFD_ICC_NOT_PRESENT;
+ if (GEMCORESIMPRO == ccid_descriptor -> readerID)
+ get_ccid_descriptor(reader_index)->dwSlotStatus
+ = IFD_ICC_NOT_PRESENT;
DEBUG_CRITICAL("PowerUp failed");
return_value = IFD_ERROR_POWER_ACTION;
More information about the Pcsclite-cvs-commit
mailing list