OSDN Git Service

dev-smartcard-reader: change default protocol to T=0
authorAlon Levy <alevy@redhat.com>
Wed, 27 Mar 2013 08:14:15 +0000 (10:14 +0200)
committerAlon Levy <alevy@redhat.com>
Wed, 24 Apr 2013 08:47:59 +0000 (11:47 +0300)
commitd7d218ef02d87c637d20d64da8f575d434ff6f78
treee91b5145407838288e6b9b6f67ec83b872ecd2f0
parent4942d6c39477f441a106430ab11f85806b4532f5
dev-smartcard-reader: change default protocol to T=0

We don't support T=1 so we shouldn't advertise it by default.

Two independent changes:
* Default ATR
 sets T=0. This gets overwritten by the client provided ATR later.
* Class descriptor
 changes dwAdvertise dwProtocols.PPPP to 0x1 and dwProtocols.RRRR=0 per spec.

Signed-off-by: Alon Levy <alevy@redhat.com>
Reviewed-by: Marc-André Lureau <mlureau@redhat.com>
hw/usb/dev-smartcard-reader.c