Hardcoded CONFIG_USB_DEVICE_NETWORK_ECM_MAC

Hello !

In my case MAC address is taken from node configuration and need to be set during runtime.

But it seems to me it is hardcoded in source code

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#!CONFIG_USB_DEVICE_NETWORK_ECM_MAC

https://github.com/nordic-krch/zephyr/blob/887f22306f3f5fe49a8335824dc692cad3e4f6b1/subsys/usb/device/class/netusb/function_ecm.c#L405C13-L405C46

I have created a variable and assigned mac address while mounting:

Is any way to do this in some other nice looking way ?

Regard,

Eugene

Related