]> git.sur5r.net Git - u-boot/commit
efi_loader: efi_net: hwaddr_size = 6
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 5 Oct 2017 14:35:58 +0000 (16:35 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Oct 2017 05:00:32 +0000 (07:00 +0200)
commit5d4a5ea964e523a29ec077b6f95537956c366c1f
treedbd715f4e32b7bed46f54ab06bd167fd5f50638c
parentbdecf974f168af49f5deb2d325e7ad8f3ad4a52e
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>
lib/efi_loader/efi_net.c