35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
|
From 002714edb70b00c20de7d54980a528ac7232bb33 Mon Sep 17 00:00:00 2001
|
||
|
From: Alon Levy <alevy@redhat.com>
|
||
|
Date: Tue, 5 Mar 2013 17:31:10 +0200
|
||
|
Subject: [PATCH 238/241] dev-smartcard-reader: empty implementation for
|
||
|
Mechanical (fail correctly)
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
Signed-off-by: Alon Levy <alevy@redhat.com>
|
||
|
Reviewed-by: Marc-André Lureau <mlureau@redhat.com>
|
||
|
(cherry picked from commit 58aeda15abb963196faaa4a0f23c5af45840f1b0)
|
||
|
---
|
||
|
hw/usb/dev-smartcard-reader.c | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
|
||
|
index 4e08f9b..a473b87 100644
|
||
|
--- a/hw/usb/dev-smartcard-reader.c
|
||
|
+++ b/hw/usb/dev-smartcard-reader.c
|
||
|
@@ -1051,6 +1051,10 @@ static void ccid_handle_bulk_out(USBCCIDState *s, USBPacket *p)
|
||
|
ccid_reset_error_status(s);
|
||
|
ccid_write_parameters(s, ccid_header);
|
||
|
break;
|
||
|
+ case CCID_MESSAGE_TYPE_PC_to_RDR_Mechanical:
|
||
|
+ ccid_report_error_failed(s, 0);
|
||
|
+ ccid_write_slot_status(s, ccid_header);
|
||
|
+ break;
|
||
|
default:
|
||
|
DPRINTF(s, 1,
|
||
|
"handle_data: ERROR: unhandled message type %Xh\n",
|
||
|
--
|
||
|
1.8.3.1
|
||
|
|