efi_selftest: Use EFI_SIMPLE_NETWORK_PROTOCOL::GetStatus() for media check
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Thu, 16 Sep 2021 08:53:27 +0000 (17:53 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 21 Oct 2021 01:46:03 +0000 (03:46 +0200)
commit39a37adf51f88aca245c40ce8652be5c9c5277b9
tree4d14ae4280744f18d5682b4324e21068115d2ab4
parent6b7b9ff14daa130f220310810963acb9e0c36c6d
efi_selftest: Use EFI_SIMPLE_NETWORK_PROTOCOL::GetStatus() for media check

According to the UEF specification v2.9, the main purpose of the
EFI_SIMPLE_NETWORK_PROTOCOL::GetStatus() is for checking the link
status via EFI_SIMPLE_NETWORK_MODE::MediaPresent.
So this uses net->get_status() for checking the link status before
running network test.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_selftest_snp.c