mirror of https://github.com/acidanthera/audk.git
fixed one bug in stop(), adding get NicHandle by gEfiArpProtocolGuid.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4815 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
89e430b0d4
commit
7d7a8ea24c
|
@ -394,15 +394,21 @@ PxeBcDriverBindingStop (
|
|||
EFI_HANDLE NicHandle;
|
||||
EFI_STATUS Status;
|
||||
|
||||
NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiDhcp4ProtocolGuid);
|
||||
NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiArpProtocolGuid);
|
||||
|
||||
if (NicHandle == NULL) {
|
||||
|
||||
NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiMtftp4ProtocolGuid);
|
||||
NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiDhcp4ProtocolGuid);
|
||||
|
||||
if (NicHandle == NULL) {
|
||||
|
||||
return EFI_DEVICE_ERROR;
|
||||
NicHandle = NetLibGetNicHandle (ControllerHandle, &gEfiMtftp4ProtocolGuid);
|
||||
|
||||
if (NicHandle == NULL) {
|
||||
|
||||
return EFI_DEVICE_ERROR;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue