]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c
MdeModulePkg: Fix issue about current Ip4Dxe implementation for DHCP DORA process
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Config2Impl.c
index 2da4a513495e138512d5f7c440ca73279edb593b..fcb2bdd56270287a414d5805147926333d8f0ba8 100644 (file)
@@ -84,22 +84,6 @@ Ip4Config2DestroyDhcp4 (
   return Status;  \r
 }\r
 \r
-/**\r
-  Start the DHCP configuration for this IP service instance.\r
-  It will locates the EFI_IP4_CONFIG2_PROTOCOL, then start the\r
-  DHCP configuration.\r
-\r
-  @param[in]  Instance           The IP4 config2 instance to configure.\r
-\r
-  @retval EFI_SUCCESS            The auto configuration is successfull started.\r
-  @retval Others                 Failed to start auto configuration.\r
-\r
-**/\r
-EFI_STATUS\r
-Ip4StartAutoConfig (\r
-  IN IP4_CONFIG2_INSTANCE   *Instance\r
-  );\r
-\r
 /**\r
   Update the current policy to NewPolicy. During the transition\r
   period, the default router list\r
@@ -992,10 +976,7 @@ Ip4Config2SetPolicy (
   }\r
 \r
   if (NewPolicy == Instance->Policy) {\r
-    if (NewPolicy != Ip4Config2PolicyDhcp || Instance->DhcpSuccess) {\r
-      return EFI_ABORTED;\r
-    }\r
-    \r
+     return EFI_ABORTED;\r
   } else {\r
     if (NewPolicy == Ip4Config2PolicyDhcp) {\r
       //\r