Set the current (permanent was already being set) in the driver entry function. This allows the driver to be connected to before it is initialized.
Signed-off-by: Roy Franz roy.franz@linaro.org Contributed-under: TianoCore Contribution Agreement 1.0 --- ArmPlatformPkg/Drivers/LAN91xDxe/LAN91xDxe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ArmPlatformPkg/Drivers/LAN91xDxe/LAN91xDxe.c b/ArmPlatformPkg/Drivers/LAN91xDxe/LAN91xDxe.c index f82bb33..0a78e4d 100644 --- a/ArmPlatformPkg/Drivers/LAN91xDxe/LAN91xDxe.c +++ b/ArmPlatformPkg/Drivers/LAN91xDxe/LAN91xDxe.c @@ -986,6 +986,7 @@ Probe (
// Read and save the Permanent MAC Address LanDriver->SnpMode.PermanentAddress = GetCurrentMacAddress (LanDriver); + LanDriver->SnpMode.CurrentAddress = LanDriver->SnpMode.PermanentAddress; DEBUG((EFI_D_ERROR, //EFI_D_NET | EFI_D_INFO, "LAN91x: HW MAC Address: %02x-%02x-%02x-%02x-%02x-%02x\n", LanDriver->SnpMode.PermanentAddress.Addr[0], @@ -1057,8 +1058,6 @@ SnpStart ( ReturnUnlock (EFI_DEVICE_ERROR); }
- // Set the Current MAC address - Mode->CurrentAddress = Mode->PermanentAddress;
// Change state Mode->State = EfiSimpleNetworkStarted;