]> git.proxmox.com Git - qemu.git/commitdiff
dev-smartcard-reader: empty implementation for Mechanical (fail correctly)
authorAlon Levy <alevy@redhat.com>
Tue, 5 Mar 2013 15:31:10 +0000 (17:31 +0200)
committerAlon Levy <alevy@redhat.com>
Wed, 24 Apr 2013 08:48:04 +0000 (11:48 +0300)
Signed-off-by: Alon Levy <alevy@redhat.com>
Reviewed-by: Marc-André Lureau <mlureau@redhat.com>
hw/usb/dev-smartcard-reader.c

index 78ef50413e3c35fea86e1afe987b13912a6d469b..125cc2c22195f775cef6538fd7e29adcc6045e4e 100644 (file)
@@ -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",