audk/ShellPkg/Library/UefiShellNetwork1CommandsLib
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
..
Ifconfig.c Ifconfig : Fixed False information about Media State. 2017-10-13 17:14:50 +08:00
Ping.c ShellPkg: Fix typos in comments and variables 2016-11-15 11:05:34 +08:00
UefiShellNetwork1CommandsLib.c
UefiShellNetwork1CommandsLib.h
UefiShellNetwork1CommandsLib.inf ShellPkg/UefiShellNetwork1CommandsLib: Fix incorrect Protocol format 2016-12-14 21:34:33 +08:00
UefiShellNetwork1CommandsLib.uni ShellPkg: Fix typo errors in ifconfig help output 2017-06-10 10:23:18 +08:00