commit | e7abe82c18b4604b6512b486b9001ede278ef14a | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@freyther.de> | Thu Feb 07 23:41:03 2013 +0000 |
committer | Tom Rini <trini@ti.com> | Wed Feb 20 08:52:41 2013 -0500 |
tree | 6bfa7779cfb93bb9cef22c54358d43edb635bbfc | |
parent | dd650f1f8adb7803d0bb42314fe3dbbe2f5be9d9 [diff] |
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>