summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@freyther.de>2013-02-07 23:41:03 +0000
committerTom Rini <trini@ti.com>2013-02-20 08:52:41 -0500
commitc8876f1c72ac36879436278892e6c20a93174b6a (patch)
tree6bfa7779cfb93bb9cef22c54358d43edb635bbfc /net/net.c
parent4f47aceb118b291831a603d7e6ca651d76bf88e0 (diff)
downloadu-boot-imx-c8876f1c72ac36879436278892e6c20a93174b6a.zip
u-boot-imx-c8876f1c72ac36879436278892e6c20a93174b6a.tar.gz
u-boot-imx-c8876f1c72ac36879436278892e6c20a93174b6a.tar.bz2
mac: Fix the condition check for setting the MAC from the EEPROM
The issue got introduced in a cleanup by Manjunath Hadli in commit 826e99136e2bce61f3f6572e32d7aa724c116e6d. The eth_getenv_enetaddr_by_index method will validate the MAC addr and if none is set in the environment 0 will be returned. Set the MAC from the eeprom if no valid address is found in environment. Signed-off-by: Holger Hans Peter Freyther <holger@freyther.de>
Diffstat (limited to 'net/net.c')
0 files changed, 0 insertions, 0 deletions