From 9d230fd89ea8d18e2437d3a3efd54bfcd16f77b0 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 25 Nov 2026 08:33:25 +0100 Subject: usb: Require all three usbmux interface fields to match a2cbb59 inverted the interface check incorrectly: the original "!= class || != subclass || != protocol -> skip" became "== class || == subclass || == protocol -> usbmux interface", so any vendor-class (255) interface matched. On the internal T1 (05ac:8600) this picked interface 7 (ff/f9/11) and tried to claim it. --- src/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usb.c b/src/usb.c index 0babd03..baecb90 100644 --- a/src/usb.c +++ b/src/usb.c @@ -542,8 +542,8 @@ static int set_valid_configuration(struct libusb_device* dev, struct usb_device } for(k = 0 ; k < config->bNumInterfaces ; k++) { intf = &config->interface[k].altsetting[0]; - if(intf->bInterfaceClass == INTERFACE_CLASS || - intf->bInterfaceSubClass == INTERFACE_SUBCLASS || + if(intf->bInterfaceClass == INTERFACE_CLASS && + intf->bInterfaceSubClass == INTERFACE_SUBCLASS && intf->bInterfaceProtocol == INTERFACE_PROTOCOL) { usbmuxd_log(LL_NOTICE, "Found usbmux interface for device %i-%i: %i", bus, address, intf->bInterfaceNumber); if(intf->bNumEndpoints != 2) { -- cgit v1.1-32-gdbae