Skip to content

USB Wi-Fi Adapter Passthrough Fails with Invalid ep0 maxpacket: 64 on Xiaomi (MIUI / Android 10) Devices #85

Description

@OPX-Aminul

bug:
When attempting to pass through a USB Wi-Fi adapter to the VM, the device fails to enumerate. The kernel logs show a recurring Invalid ep0 maxpacket: 64 error followed by unable to enumerate USB device on the virtual xHCI controller.

Crucial Details
The exact same USB Wi-Fi adapter works perfectly without any errors when tested on other non-Xiaomi devices.
This issue has been tested across multiple apps (including Stryker, KaliDroid, etc.), and every single app produces this exact same error.
It has also been tested on another Xiaomi device running MIUI, and the same failure occurs. This indicates a potential compatibility issue with Xiaomi's USB host stack / MIUI environment or how the virtual xHCI controller handles packets on these devices.

Device Info
Device: Xiaomi Poco F1
OS: Android 10 (MIUI)
App Version: latest (and tested on similar rootless VM apps)
Backend: QEMU (TCG) / USB Passthrough Enabled
Kernel Logs (dmesg)

[ 333.137481] usb 1-1: new low-speed USB device number 2 using xhci_hcd
[ 333.297830] usb 1-1: Invalid ep0 maxpacket: 64
[ 333.719293] usb 1-1: new low-speed USB device number 3 using xhci_hcd
[ 333.886702] usb 1-1: Invalid ep0 maxpacket: 64
[ 333.899338] usb usb1-port1: attempt power cycle
[ 334.439198] usb 1-1: new low-speed USB device number 4 using xhci_hcd
[ 334.487459] usb 1-1: Invalid ep0 maxpacket: 64
[ 334.906928] usb 1-1: new low-speed USB device number 5 using xhci_hcd
[ 334.931900] usb 1-1: Invalid ep0 maxpacket: 64
[ 334.953568] usb usb1-port1: unable to enumerate USB device
[ 395.847966] usb 1-2: new low-speed USB device number 6 using xhci_hcd
[ 395.989320] usb 1-2: Invalid ep0 maxpacket: 64
[ 396.383217] usb 1-2: new low-speed USBdevice number 7 using xhci_hcd
[ 396.529617] usb 1-2: Invalid ep0 maxpacket: 64
[ 396.533276] usb usb1-port2: attempt power cycle
[ 397.030523] usb 1-2: new low-speed USB device number 8 using xhci_hcd
[ 397.051583] usb 1-2: Invalid ep0 maxpacket: 64
[ 397.411684] usb 1-2: new low-speed USB device number 9 using xhci_hcd
[ 397.431654] usb 1-2: Invalid ep0 maxpacket: 64
[ 397.435024] usb usb1-port2: unable to enumerate USB device

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions