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

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Fri Apr 11 18:46:19 UTC 2014


Author: rousseau
Date: 2014-04-11 18:46:19 +0000 (Fri, 11 Apr 2014)
New Revision: 6885

Modified:
   trunk/Drivers/ccid/src/ccid.c
Log:
The O2 Micro Oz776 reader only supports 9600 bps

The reader returns bNumDataRatesSupported: 0 and a list with only 1
value: 9600 bps.
bNumDataRatesSupported: 0 should indicate that all the speeds between
dwDataRate: 9600 bps and dwMaxDataRate: 307200 bps are available. But it
looks like this is not the case.

The driver behavior changed with revision 6801 "Do not get the data
rates if bNumDataRatesSupported = 0".

This patch just set dwMaxDataRate to 9600 so only this speed is used.
The O2 Micro Oz776 reader was already in the unsupported list.


Modified: trunk/Drivers/ccid/src/ccid.c
===================================================================
--- trunk/Drivers/ccid/src/ccid.c	2014-03-26 17:19:02 UTC (rev 6884)
+++ trunk/Drivers/ccid/src/ccid.c	2014-04-11 18:46:19 UTC (rev 6885)
@@ -78,6 +78,10 @@
 				DEBUG_INFO("ZLP fixup");
 			}
 			break;
+
+		case OZ776_7772:
+			ccid_descriptor->dwMaxDataRate = 9600;
+			break;
 	}
 
 	/* CCID */




More information about the Pcsclite-cvs-commit mailing list