mirror of https://github.com/acidanthera/audk.git
Add check of MediaPresentSupported field in SNP mode data to support UNDI without cable detect capability.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10256 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fe81726212
commit
412d1ed9fc
|
@ -214,10 +214,11 @@ MnpSyncSendPacket (
|
||||||
// Check media status before transmit packet.
|
// Check media status before transmit packet.
|
||||||
// Note: media status will be updated by periodic timer MediaDetectTimer.
|
// Note: media status will be updated by periodic timer MediaDetectTimer.
|
||||||
//
|
//
|
||||||
if (!Snp->Mode->MediaPresent) {
|
if (Snp->Mode->MediaPresentSupported && !Snp->Mode->MediaPresent) {
|
||||||
//
|
//
|
||||||
// Media not present, skip packet transmit and report EFI_NO_MEDIA
|
// Media not present, skip packet transmit and report EFI_NO_MEDIA
|
||||||
//
|
//
|
||||||
|
DEBUG ((EFI_D_WARN, "MnpSyncSendPacket: No network cable detected.\n"));
|
||||||
Status = EFI_NO_MEDIA;
|
Status = EFI_NO_MEDIA;
|
||||||
goto SIGNAL_TOKEN;
|
goto SIGNAL_TOKEN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue