mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] net: Set the actual ethaddr in register_preset_mac_address()
@ 2015-06-09  7:04 Wadim Egorov
  2015-06-10  4:32 ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Wadim Egorov @ 2015-06-09  7:04 UTC (permalink / raw)
  To: barebox

Set the ethaddr for the current edev.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
 net/eth.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/eth.c b/net/eth.c
index 89bddba..03e0a2e 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -49,6 +49,7 @@ static void register_preset_mac_address(struct eth_device *edev, const char *eth
 	ethaddr_to_string(ethaddr, ethaddr_str);
 
 	if (is_valid_ether_addr(ethaddr)) {
+		memcpy(edev->ethaddr, ethaddr, 6);
 		dev_info(&edev->dev, "got preset MAC address: %s\n", ethaddr_str);
 		dev_set_param(&edev->dev, "ethaddr", ethaddr_str);
 	}
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-15  9:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-09  7:04 [PATCH] net: Set the actual ethaddr in register_preset_mac_address() Wadim Egorov
2015-06-10  4:32 ` Sascha Hauer
2015-06-10  6:44   ` Wadim Egorov
2015-06-10 11:28     ` AW: " Gabor Janak (g.janak@agilion.de)
2015-06-15  6:55     ` Sascha Hauer
2015-06-15  9:08       ` Wadim Egorov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox