mirror of https://github.com/acidanthera/audk.git
128946c9c3
Some UNDI drivers may not support the cable detect in UNDI INITIALIZE command, but support the media present check in UNDI GET_STATUS command. Current SNP driver will set the MediaPresentSupported field to FALSE in EFI_SIMPLE_NETWORK_MODE for such case, which forbid the media detect from the callers. This patch updates the SNP driver to support such kind of UNDIs for media detect. MediaPresentSupported will be set to TRUE, and a GET_STATUS command will be issued immediately after INITIALIZE command in SNP->Initialize() function, to refresh the value of MediaPresent in SNP mode data. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-By: Ye Ting <ting.ye@intel.com> Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com> |
||
---|---|---|
.. | ||
Callback.c | ||
ComponentName.c | ||
Get_status.c | ||
Initialize.c | ||
Mcast_ip_to_mac.c | ||
Nvdata.c | ||
Receive.c | ||
Receive_filters.c | ||
Reset.c | ||
Shutdown.c | ||
Snp.c | ||
Snp.h | ||
SnpDxe.inf | ||
SnpDxe.uni | ||
SnpDxeExtra.uni | ||
Start.c | ||
Station_address.c | ||
Statistics.c | ||
Stop.c | ||
Transmit.c | ||
WaitForPacket.c |