diff options
author | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-16 13:16:19 +0000 |
---|---|---|
committer | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-03-16 13:16:19 +0000 |
commit | 412d1ed9fcfa169548993acb7b2bc4ffb0b77649 (patch) | |
tree | 2b6058db381b6b86406f12a9f91ee1a9ca9a50c7 /MdeModulePkg | |
parent | fe81726212ad09a495c823f2a74e5efcb08a70b0 (diff) | |
download | edk2-platforms-412d1ed9fcfa169548993acb7b2bc4ffb0b77649.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c b/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c index 32cffd5730..695873d2f6 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c @@ -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;
}
|