summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/eth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/eth.c b/net/eth.c
index 7f139a2fa9..d4446fd64a 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -44,10 +44,15 @@ struct eth_device * eth_get_current(void)
int eth_init(void)
{
+ char mac[6];
if (!eth_current)
return 0;
+ string_to_enet_addr(dev_get_param(eth_current->dev, "mac"), mac);
+
+ eth_current->set_mac_address(eth_current, mac);
+
eth_current->open(eth_current);
return 1;