I'm starting to feel that trying to fix the C rewrite is futile. On line 392 of usb_modeswitch_dispatcher.c, the iface variable is overwritten. Unfortunately the value being assigned is not an interface number, it is rather a USB class number. Fixing this might help with some part of this, but it also might break something else. I was also trying to map between the C rewrite and the 2.2.5 version of the tcl script (as stated in the header of the C version), but it seems that there are functional differences (for example the if_chk mode seems to trigger on different ocassions).
I'd vote for going with the Tcl version for Focal as well (I'm ignoring any existing SRU rules through). The dependency isn't a full Tcl interpreter, only a small library-based variant of it called Jim (http://jim.tcl.tk/index.html/doc/www/www/index.html). According to the package description, the library size is only 100-200 kB, which seems negligible compared to the current ISO sizes. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1866926 Title: Device validation failing when connected to an usb hub To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1866926/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs