From 475d5e64f0c79d164f5c4f93284a94d549605df5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Wed, 20 Nov 2013 16:16:44 +0100 Subject: [PATCH] net: bootme: re-add eth_init() call when eth not active --- net/bootme.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/net/bootme.c b/net/bootme.c index af2ab9f57e..13749802d7 100644 --- a/net/bootme.c +++ b/net/bootme.c @@ -304,6 +304,17 @@ int bootme_send_frame(const void *buf, size_t len) return 0; } + if (eth->state != ETH_STATE_ACTIVE) { + if (eth_is_on_demand_init()) { + ret = eth_init(gd->bd); + if (ret < 0) + return ret; + eth_set_last_protocol(BOOTME); + } else { + eth_init_state_only(gd->bd); + } + } + assert(NetTxPacket != NULL); pkt = (uchar *)NetTxPacket + NetEthHdrSize() + IP_UDP_HDR_SIZE; memcpy(pkt, buf, len); -- 2.39.2