[Pcsclite-cvs-commit] r2176 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at costa.debian.org
Tue Sep 26 15:32:08 CEST 2006


Author: rousseau
Date: 2006-09-26 13:32:05 +0000 (Tue, 26 Sep 2006)
New Revision: 2176

Modified:
   trunk/Drivers/ccid/src/ifdhandler.c
Log:
IFDHICCPresence(): the patch in revision 2150 was not correct.
SCardReconnect(..., SCARD_UNPOWER_CARD, ...) failed since the
card was reported as non present after the power off


Modified: trunk/Drivers/ccid/src/ifdhandler.c
===================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c	2006-09-26 13:29:57 UTC (rev 2175)
+++ trunk/Drivers/ccid/src/ifdhandler.c	2006-09-26 13:32:05 UTC (rev 2176)
@@ -1108,7 +1108,8 @@
 			break;
 
 		case CCID_ICC_PRESENT_INACTIVE:
-			if (CcidSlots[reader_index].bPowerFlags == POWERFLAGS_RAZ)
+			if ((CcidSlots[reader_index].bPowerFlags == POWERFLAGS_RAZ)
+				|| (CcidSlots[reader_index].bPowerFlags & MASK_POWERFLAGS_PDWN))
 				/* the card was previously absent */
 				return_value = IFD_ICC_PRESENT;
 			else




More information about the Pcsclite-cvs-commit mailing list