Page MenuHomeFreeBSD

Fix setting MAC address for RTL8152
ClosedPublic

Authored by ganbold on Apr 9 2019, 5:04 AM.

Details

Summary

In some cases like NanoPI R1, its second USB ethernet
RTL8152 (chip version URE_CHIP_VER_4C10) doesn't
have hardwired MAC address, in other words, it is all zeros.
This commit fixes it by setting random MAC address
when MAC address is all zeros.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ganbold created this revision.Apr 9 2019, 5:04 AM
kevlo accepted this revision.Apr 9 2019, 1:49 PM
This revision is now accepted and ready to land.Apr 9 2019, 1:49 PM
This revision was automatically updated to reflect the committed changes.