In wireless connection, connecting state needs to be cared more
about. ECR 1772 redefined the state EFI_NOT_READY to represent
connecting state and can be retrieved from Aip protocol. This
patch adds a new API to check media state at a specified time
interval when network is connecting until the connection process
finishes or timeout.
V2:
  * Return error status code directly when Aip protocol falied to detect
    media rather than wait for another time's check.
  * Set media state default value to EFI_SUCCESS since some platforms may
    not support retrieving media state from Aip protocol.
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  This library instance provides the basic network services.
 | |
| #
 | |
| #  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
 | |
| #  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
 | |
| #  This program and the accompanying materials
 | |
| #  are licensed and made available under the terms and conditions of the BSD License
 | |
| #  which accompanies this distribution.  The full text of the license may be found at
 | |
| #  http://opensource.org/licenses/bsd-license.php
 | |
| #
 | |
| #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | |
| #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | |
| #
 | |
| ##
 | |
| 
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = DxeNetLib
 | |
|   MODULE_UNI_FILE                = DxeNetLib.uni
 | |
|   FILE_GUID                      = db6dcef3-9f4e-4340-9351-fc35aa8a5888
 | |
|   MODULE_TYPE                    = DXE_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   LIBRARY_CLASS                  = NetLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
 | |
| 
 | |
| #
 | |
| # The following information is for reference only and not required by the build tools.
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   DxeNetLib.c
 | |
|   NetBuffer.c
 | |
| 
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
| 
 | |
| 
 | |
| [LibraryClasses]
 | |
|   BaseLib
 | |
|   DebugLib
 | |
|   BaseMemoryLib
 | |
|   UefiBootServicesTableLib
 | |
|   UefiRuntimeServicesTableLib
 | |
|   UefiLib
 | |
|   MemoryAllocationLib
 | |
|   DevicePathLib
 | |
|   PrintLib
 | |
| 
 | |
| 
 | |
| [Guids]
 | |
|   gEfiSmbiosTableGuid                           ## SOMETIMES_CONSUMES  ## SystemTable
 | |
|   gEfiSmbios3TableGuid                          ## SOMETIMES_CONSUMES  ## SystemTable
 | |
|   gEfiAdapterInfoMediaStateGuid                 ## SOMETIMES_CONSUMES
 | |
| 
 | |
| 
 | |
| [Protocols]
 | |
|   gEfiSimpleNetworkProtocolGuid                 ## SOMETIMES_CONSUMES
 | |
|   gEfiManagedNetworkProtocolGuid                ## SOMETIMES_CONSUMES
 | |
|   gEfiManagedNetworkServiceBindingProtocolGuid  ## SOMETIMES_CONSUMES
 | |
|   gEfiIp4Config2ProtocolGuid                    ## SOMETIMES_CONSUMES
 | |
|   gEfiComponentNameProtocolGuid                 ## SOMETIMES_CONSUMES
 | |
|   gEfiComponentName2ProtocolGuid                ## SOMETIMES_CONSUMES
 | |
|   gEfiAdapterInformationProtocolGuid            ## SOMETIMES_CONSUMES |