aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-10-05 16:35:58 +0200
committerAlexander Graf <agraf@suse.de>2017-10-09 07:00:32 +0200
commit5d4a5ea964e523a29ec077b6f95537956c366c1f (patch)
treedbd715f4e32b7bed46f54ab06bd167fd5f50638c /lib
parentbdecf974f168af49f5deb2d325e7ad8f3ad4a52e (diff)
downloadu-boot-5d4a5ea964e523a29ec077b6f95537956c366c1f.zip
u-boot-5d4a5ea964e523a29ec077b6f95537956c366c1f.tar.gz
u-boot-5d4a5ea964e523a29ec077b6f95537956c366c1f.tar.bz2
efi_loader: efi_net: hwaddr_size = 6
The length of a MAC address is 6. We have to set this length in the EFI_SIMPLE_NETWORK_MODE structure of the EFI_SIMPLE_NETWORK_PROTOCOL. Without this patch iPXE fails to initialize the network with error message SNP MAC(001e0633bcbf,0x0) has invalid hardware address length 0 Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c
index fb23bcf..9def34c 100644
--- a/lib/efi_loader/efi_net.c
+++ b/lib/efi_loader/efi_net.c
@@ -245,6 +245,7 @@ int efi_net_register(void)
netobj->net.mode = &netobj->net_mode;
netobj->net_mode.state = EFI_NETWORK_STARTED;
memcpy(netobj->net_mode.current_address.mac_addr, eth_get_ethaddr(), 6);
+ netobj->net_mode.hwaddr_size = ARP_HLEN;
netobj->net_mode.max_packet_size = PKTSIZE;
netobj->pxe.mode = &netobj->pxe_mode;