/** @file\r
Implementation of driver entry point and driver binding protocol.\r
\r
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed\r
-and made available under the terms and conditions of the BSD License which\r
-accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *BarDesc;\r
BOOLEAN FoundIoBar;\r
BOOLEAN FoundMemoryBar;\r
- \r
+\r
DEBUG ((EFI_D_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));\r
\r
Status = gBS->OpenProtocol (\r
}\r
Snp->MaxRecycledTxBuf = SNP_TX_BUFFER_INCREASEMENT;\r
Snp->RecycledTxBufCount = 0;\r
- \r
+\r
if (Nii->Revision >= EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL_REVISION) {\r
Snp->IfNum = Nii->IfNum;\r
\r
\r
switch (InitStatFlags & PXE_STATFLAGS_CABLE_DETECT_MASK) {\r
case PXE_STATFLAGS_CABLE_DETECT_SUPPORTED:\r
- Snp->Mode.MediaPresentSupported = TRUE;\r
+ Snp->CableDetectSupported = TRUE;\r
break;\r
\r
case PXE_STATFLAGS_CABLE_DETECT_NOT_SUPPORTED:\r
default:\r
- Snp->Mode.MediaPresentSupported = FALSE;\r
+ Snp->CableDetectSupported = FALSE;\r
}\r
\r
switch (InitStatFlags & PXE_STATFLAGS_GET_STATUS_NO_MEDIA_MASK) {\r
Snp->MediaStatusSupported = FALSE;\r
}\r
\r
+ if (Snp->CableDetectSupported || Snp->MediaStatusSupported) {\r
+ Snp->Mode.MediaPresentSupported = TRUE;\r
+ }\r
+\r
if ((Pxe->hw.Implementation & PXE_ROMID_IMP_STATION_ADDR_SETTABLE) != 0) {\r
Snp->Mode.MacAddressChangeable = TRUE;\r
} else {\r