Revision: 15350
http://sourceforge.net/p/edk2/code/15350
Author: sfu5
Date: 2014-03-20 06:04:50 +0000 (Thu, 20 Mar 2014)
Log Message:
-----------
Use PXE_OPFLAGS_STATION_ADDRESS_WRITE when setting new MAC address for the NIC
in SNP driver.
Signed-off-by: Fu Siyuan <[email protected]>
Reviewed-by: Dong, Guo <[email protected]>
Reviewed-by: Jin, Eric <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c
Modified: trunk/edk2/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c
2014-03-20 03:30:35 UTC (rev 15349)
+++ trunk/edk2/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c
2014-03-20 06:04:50 UTC (rev 15350)
@@ -1,7 +1,7 @@
/** @file
Implementation of reading the MAC address of a network adapter.
-Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed
and made available under the terms and conditions of the BSD License which
accompanies this distribution. The full text of the license may be found at
@@ -117,10 +117,9 @@
Snp->Cdb.CPBsize = PXE_CPBSIZE_NOT_USED;
Snp->Cdb.CPBaddr = PXE_CPBADDR_NOT_USED;
} else {
- Snp->Cdb.OpFlags = PXE_OPFLAGS_STATION_ADDRESS_READ;
+ Snp->Cdb.OpFlags = PXE_OPFLAGS_STATION_ADDRESS_WRITE;
//
- // even though the OPFLAGS are set to READ, supplying a new address
- // in the CPB will make undi change the mac address to the new one.
+ // Supplying a new address in the CPB will make undi change the mac
address to the new one.
//
CopyMem (&Cpb->StationAddr, NewMacAddr, Snp->Mode.HwAddressSize);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits