audk/ShellPkg/Library
Meenakshi Aggarwal 120fd64781 Ifconfig : Fixed False information about Media State.
Issue : We were setting MediaPresent as TRUE (default) and
not checking return status of NetLibDetectMedia().
NetLibDetectMedia() sets MediaPresent FLAG in case of success
only and dont change flag on error.
So, Media State will display as 'Media Present', in case of
error also.

Fix : Check return value of NetLibDetectMedia(), if error then
print "Media State Unknown"

Contributed-under: TianoCore Contribution Agreement 1.1

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2017-10-13 17:14:50 +08:00
..
UefiDpLib ShellPkg UefiDpLib: Init CustomCumulativeData.MinDur 2017-08-14 16:55:52 +08:00
UefiHandleParsingLib ShellPkg: Update Guid usage in ShellLib INF to match source code logic 2017-10-10 18:10:19 +08:00
UefiShellBcfgCommandLib ShellPkg/UefiShellBcfgCommandLib: Fix VS2012 build failure 2017-03-15 10:03:23 +08:00
UefiShellCEntryLib ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellCommandLib ShellPkg: Fix bug that fails to change CWD after "map -r". 2017-08-30 11:42:49 +08:00
UefiShellDebug1CommandsLib ShellPkg/DmpStore: fix GCC/CLANG build failure 2017-09-22 16:50:44 +02:00
UefiShellDriver1CommandsLib ShellPkg/disconnect: '-r' is not optional when disconnecting all 2017-09-29 15:19:10 +08:00
UefiShellInstall1CommandsLib Revert "ShellPkg : Add UEFI_APPLICATION module type to UefiShellInstall1CommandsLib.inf" 2016-01-06 16:23:20 +00:00
UefiShellLevel1CommandsLib ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
UefiShellLevel2CommandsLib ShellPkg/mkdir: support creating nested directories 2017-08-21 10:42:39 +08:00
UefiShellLevel3CommandsLib Shell/alias: Print detailed error when deleting alias 2017-06-10 10:23:18 +08:00
UefiShellLib ShellPkg/ShellLib: Remove unused macros 2017-07-27 15:45:26 +08:00
UefiShellNetwork1CommandsLib Ifconfig : Fixed False information about Media State. 2017-10-13 17:14:50 +08:00
UefiShellNetwork2CommandsLib ShellPkg/Ifconfig6: Update error message and add a new line 2017-09-12 16:41:08 +08:00
UefiShellTftpCommandLib ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00