Skip to content
Commit d3ac41bb authored by Lukasz Nowak's avatar Lukasz Nowak Committed by Felipe Balbi
Browse files

usb: gadget: f_ecm: fix host mac address for multiple instances



In case there are multiple ecm instances, either for multiple
otg controllers, or multiple virtual links using libcomposite,
each instance needs to have its own host mac address string
value for iMACAddress.

Update the source array (ecm_string_defs), every time before
usb_gstrings_attach(). Without that, all links wrongly were
getting the same, last allocated, host mac address, rather
than the correct one, as requested via configfs.

Signed-off-by: default avatarLukasz Nowak <lukasz.nowak@exablue.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent eea52743
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment