diff options
author | Gerd Hoffmann | 2021-02-16 15:49:39 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2021-02-17 14:29:12 +0100 |
commit | 6ba5a437ad48f10931592f649b5b7375968f362d (patch) | |
tree | 65859e606c9b67e2920a0b87d0da5dd0c6fd8f98 /hw/usb | |
parent | usb-host: use correct altsetting in usb_host_ep_update (diff) | |
download | qemu-6ba5a437ad48f10931592f649b5b7375968f362d.tar.gz qemu-6ba5a437ad48f10931592f649b5b7375968f362d.tar.xz qemu-6ba5a437ad48f10931592f649b5b7375968f362d.zip |
usb/pcap: set flag_setup
Without that wireshark complains about invalid control setup data
for non-control transfers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20210216144939.841873-1-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/pcap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb/pcap.c b/hw/usb/pcap.c index 4350989d3a..dbff00be25 100644 --- a/hw/usb/pcap.c +++ b/hw/usb/pcap.c @@ -127,6 +127,7 @@ static void do_usb_pcap_ctrl(FILE *fp, USBPacket *p, bool setup) .xfer_type = usbmon_xfer_type[USB_ENDPOINT_XFER_CONTROL], .epnum = in ? 0x80 : 0, .devnum = dev->addr, + .flag_setup = setup ? 0 : '-', .flag_data = '=', .length = dev->setup_len, }; @@ -169,6 +170,7 @@ static void do_usb_pcap_data(FILE *fp, USBPacket *p, bool setup) .xfer_type = usbmon_xfer_type[p->ep->type], .epnum = usbmon_epnum(p), .devnum = p->ep->dev->addr, + .flag_setup = '-', .flag_data = '=', .length = p->iov.size, }; |