You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirmed broken for NCM and RNDIS in master, but only if usbg_create_function() is called with f_attrs != NULL.
The error is in usbg_f_net_set_attrs(): Setting attr USBG_F_NET_CLASS returns USBG_ERROR_NO_ACCESS
The text was updated successfully, but these errors were encountered:
This is actually worse than described:
The class/subclass/protocol parameters only exist for rndis, so trying to set those values breaks ncm/ecm devices
# ls /config/usb_gadget/g1/functions/rndis.usb0/
class dev_addr host_addr ifname os_desc protocol qmult subclass
# ls /config/usb_gadget/g1/functions/ecm.usb0/
dev_addr host_addr ifname qmult
Renaming the class variable has a side-effect:
https://github.com/linux-usb-gadgets/libusbgx/blob/master/src/function/ether.c#L70
Now the library will want to write to the file "class_" instead of "class", and that breaks
usbg_create_function() if f_attrs != NULL.
One way to fix that:
Confirmed broken for NCM and RNDIS in master, but only if usbg_create_function() is called with f_attrs != NULL.
The error is in usbg_f_net_set_attrs(): Setting attr USBG_F_NET_CLASS returns USBG_ERROR_NO_ACCESS
The text was updated successfully, but these errors were encountered: