From f0a5825c53db1f659f897eec62506f7763ee6280 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 24 Mar 2014 18:59:29 +0100 Subject: unifying: prevent sending HID++ reports if not enabled Interrupts were enabled for EP3, but the WinXP driver did not support the reports sent through it. Prevent generating HID++ reports for devices that are not in DJ mode (i.e. in standard HID mode). Signed-off-by: Peter Wu --- hw/usb/dev-unifying.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/usb/dev-unifying.c') diff --git a/hw/usb/dev-unifying.c b/hw/usb/dev-unifying.c index 926e2f7e56..0eb0ebe5af 100644 --- a/hw/usb/dev-unifying.c +++ b/hw/usb/dev-unifying.c @@ -358,6 +358,7 @@ static void usb_ltunify_hid_event(HIDState *hs) if (s->devices[ifnum].mode == LTUNIFY_MODE_HID) { usb_wakeup(s->intr[ifnum], 0); } else { + assert(s->devices[ifnum].mode == LTUNIFY_MODE_DJ); usb_wakeup(s->intr[IFACE_HIDPP], 0); } } -- cgit v1.2.1