In context of the whole "random mac address" topic I want to point out that it looks very much like whoever wrote it mean this as a feature and not a bug. If anyone with the proper understanding wishes to hard code their mac address into the driver, they can easily.
One might find in lines
https://gitlab.com/TuxThePenguin0/bes260...=heads#L41
and
https://gitlab.com/TuxThePenguin0/bes260...heads#L262
We first set a template, i.e. 02:80:e1:00:00:00, for the mac address and in the second mentioned line we check whether the last 3 bytes of the currently set mac address are all equal to zero. Only if the mac address has all zeros at the end, the randomization is set. So, if one just changes the template to not have all zeros in the end, the randomization function is not called and the mac address will effectively remain as the one set as the template.
Changing this and recompiling the driver worked for me to achieve a stable mac address. Of course this is a workaround and not a clean solution to the issue. I agree with Kevin Köfler saying we should be honoring userspace override of the mac address https://gitlab.com/TuxThePenguin0/bes2600/-/issues/5
One might find in lines
https://gitlab.com/TuxThePenguin0/bes260...=heads#L41
and
https://gitlab.com/TuxThePenguin0/bes260...heads#L262
We first set a template, i.e. 02:80:e1:00:00:00, for the mac address and in the second mentioned line we check whether the last 3 bytes of the currently set mac address are all equal to zero. Only if the mac address has all zeros at the end, the randomization is set. So, if one just changes the template to not have all zeros in the end, the randomization function is not called and the mac address will effectively remain as the one set as the template.
Changing this and recompiling the driver worked for me to achieve a stable mac address. Of course this is a workaround and not a clean solution to the issue. I agree with Kevin Köfler saying we should be honoring userspace override of the mac address https://gitlab.com/TuxThePenguin0/bes2600/-/issues/5