summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHannes Schmelzer <oe5hpm@oevsv.at>2016-09-02 14:48:17 +0200
committerJoe Hershberger <joe.hershberger@ni.com>2016-10-13 12:25:26 -0500
commitc86ff7fdb2272e25c8abba2e36d4f28f9282cd37 (patch)
treeb4568686aca64252dc49a7f7903125ae869f7bf8 /net
parent6723b235520190bdc774760126fc063ec794c37f (diff)
downloadu-boot-c86ff7fdb2272e25c8abba2e36d4f28f9282cd37.tar.gz
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 <oe5hpm@oevsv.at> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/eth-uclass.c1
1 files changed, 1 insertions, 0 deletions
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);