]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/Library/DxeNetLib/DxeNetLib.c
MdeModulePkg/NetLib: Add NetLibDetectMediaWaitTimeout() API to support EFI_NOT_READY...
authorfanwang2 <fan.wang@intel.com>
Wed, 6 Dec 2017 05:00:21 +0000 (13:00 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Wed, 6 Dec 2017 05:10:05 +0000 (13:10 +0800)
commitca4e43239282a97bdc1f5b34abafa2f8774691d9
tree08c2dc86d3e4ee05046369f6335f1428108ec687
parent1e6e6e188e01fa08f653706076a6465e0fcb0441
MdeModulePkg/NetLib: Add NetLibDetectMediaWaitTimeout() API to support EFI_NOT_READY media state detection

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>
MdeModulePkg/Include/Library/NetLib.h
MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf