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:
xdu2 2010-03-16 13:16:19 +00:00
parent fe81726212
commit 412d1ed9fc
1 changed files with 2 additions and 1 deletions

View File

@ -214,10 +214,11 @@ MnpSyncSendPacket (
// Check media status before transmit packet.
// 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
//
DEBUG ((EFI_D_WARN, "MnpSyncSendPacket: No network cable detected.\n"));
Status = EFI_NO_MEDIA;
goto SIGNAL_TOKEN;
}