]> git.proxmox.com Git - mirror_edk2.git/commit
Ifconfig : Fixed False information about Media State.
authorMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Thu, 5 Oct 2017 06:24:45 +0000 (11:54 +0530)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 13 Oct 2017 09:14:50 +0000 (17:14 +0800)
commit120fd64781d2c0810ce41c0d4a6ecd348ff7bc49
tree6d15e23045cb9cf5bc4288334b52746bda061972
parent152e8d7670d5e6d2f9e5ca936eaf1568a7a53c4d
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>
ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c