Set the ethaddr for the current edev.

Signed-off-by: Wadim Egorov <[email protected]>
---
 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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to