hw/usb/canokey: Fix CCID ZLP
commitada270cd18723c575120c379d0234a1eafeba3dc
authorHongren (Zenithal) Zheng <i@zenithal.me>
Mon, 13 Jun 2022 12:14:19 +0000 (13 20:14 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 1 Jul 2022 10:37:36 +0000 (1 12:37 +0200)
tree37e06d2b0b1ac09ce976072457b1afca63fee364
parent8c0d80245f3cdbbe6003844751d8fc6b1db7b1e4
hw/usb/canokey: Fix CCID ZLP

CCID could send zero-length packet (ZLP)
if we invoke two data_in, two packets would be concated
and we could not distinguish them.

The CANOKEY_EMU_EP_CTAPHID is imported from canokey-qemu.h

Reported-by: MkfsSion <myychina28759@gmail.com>
Signed-off-by: Hongren (Zenithal) Zheng <i@zenithal.me>
Message-Id: <YqcqGz0s3+LE42ms@Sun>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/canokey.c