Commit 602302b4 authored by Harald Welte's avatar Harald Welte

icE1usb: Don't consider altsetting with no endpoints as "ON"

find_altsetting_on() must not only find an altsetting with no
zero-sized endpoints, but must also make sure there actually
are endpoints.

This enables compatibility with icE1usb firmware >= 0.1-43-g9674436
parent 0adbb40d
......@@ -862,7 +862,7 @@ static const struct usb_host_interface *find_altsetting_on(struct usb_interface
for (i = 0; i < intf->num_altsetting; i++) {
const struct usb_host_interface *alt = &intf->altsetting[i];
if (!has_ep_packetsize_zero(alt))
if (!has_ep_packetsize_zero(alt) && alt->desc.bNumEndpoints >= 3)
return alt;
return NULL;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment