Overall procedure is to find DTB node with comaptible string "usbVID,PID"
and try to obtain MAC address from mac-address and local-mac-address fields
Details
Details
Tested in RPi3B+, FreeBSD uses MAC address matching the one provided by the firmware
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
- Added documentation
- Removed some stale comments
- Refactored MAC-stting part into muge_set_mac_addr function
Comment Actions
Some suggestions but overall I think this is fine. I can futz with it after commit otherwise.
sys/dev/usb/net/if_muge.c | ||
---|---|---|
1468 ↗ | (On Diff #44828) | extra 'r' in store |
1509 ↗ | (On Diff #44828) | matching |
1547–1551 ↗ | (On Diff #44828) | This comment is probably not correct (at least, not correct at this location) now. |
1569–1570 ↗ | (On Diff #44828) | Given this is moved out into a function we could use early-return instead |