summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usb.c4
1 files 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) {