]> git.sur5r.net Git - u-boot/blobdiff - net/net.c
SPL: Rework how we inform about un-headered images
[u-boot] / net / net.c
index 9de7d92643e04163ee504a75a63f01ec8b2e666e..e8ff0662b8858f313f769e26c134c1e93d5bd10e 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -256,6 +256,7 @@ static void NetInitLoop(void)
 #endif
                env_changed_id = env_id;
        }
+       memcpy(NetOurEther, eth_get_dev()->enetaddr, 6);
 
        return;
 }
@@ -322,8 +323,6 @@ int NetLoop(enum proto_t protocol)
        }
 
 restart:
-       memcpy(NetOurEther, eth_get_dev()->enetaddr, 6);
-
        net_set_state(NETLOOP_CONTINUE);
 
        /*