diff options
author | Joe Hershberger | 2015-03-22 17:09:00 -0500 |
---|---|---|
committer | Simon Glass | 2015-04-18 11:11:10 -0600 |
commit | 8b2c9a7157c3c737b3bdf640796509eef0a58c52 (patch) | |
tree | f50951a973cf76471e0199bb01b5d69b245c88a6 /net/net.c | |
parent | 0eb25b619699270a8af95c2f76791fd6c4b52972 (diff) |
net: Provide a function to get the current MAC address
The current implementation exposes the eth_device struct to code that
needs to access the MAC address. Add a wrapper function for this to
abstract away the pointer for this operation.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c index b60ce6242ce..4b3c90e18ee 100644 --- a/net/net.c +++ b/net/net.c @@ -275,7 +275,7 @@ static void NetInitLoop(void) env_changed_id = env_id; } if (eth_get_dev()) - memcpy(NetOurEther, eth_get_dev()->enetaddr, 6); + memcpy(NetOurEther, eth_get_ethaddr(), 6); return; } |