[efi] Poll media status only if advertised as supported
authorMichael Brown <mcb30@ipxe.org>
Tue, 14 Apr 2015 15:44:37 +0000 (16:44 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 14 Apr 2015 15:44:37 +0000 (16:44 +0100)
commit729c16ad5b5502913d15a1fb17747bc8b586bed2
treeb8f152a53e806e3ea3103030cb69ab46f6efe02e
parent914dd539b0bb4e11d1f2749e12bac986df5f17a3
[efi] Poll media status only if advertised as supported

Some NII implementations will fail the GET_STATUS operation if we
request the media status.  Fix by doing so only if GET_INIT_INFO
reported that media status is supported.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/nii.c