From: Hannes Schmelzer Date: Fri, 2 Sep 2016 12:48:17 +0000 (+0200) Subject: net: write enetaddr down to hardware on env_callback X-Git-Tag: v2016.11-rc2~8^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c86ff7fdb2272e25c8abba2e36d4f28f9282cd37;p=u-boot net: write enetaddr down to hardware on env_callback If mac-address is changed using "setenv ethaddr ...." command the new mac-adress also must be written into the responsible ethernet driver. Signed-off-by: Hannes Schmelzer Acked-by: Joe Hershberger --- diff --git a/net/eth-uclass.c b/net/eth-uclass.c index c15cc4d90b..a32961e6ce 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -227,6 +227,7 @@ static int on_ethaddr(const char *name, const char *value, enum env_op op, case env_op_create: case env_op_overwrite: eth_parse_enetaddr(value, pdata->enetaddr); + eth_write_hwaddr(dev); break; case env_op_delete: memset(pdata->enetaddr, 0, 6);