[efi] Assume that vendor wireless drivers are unusable via SNP

The UEFI model for wireless network boot cannot sensibly be described
without cursing.  Commit 758a504 ("[efi] Inhibit calls to Shutdown()
for wireless SNP devices") attempts to work around some of the known
issues.

Experimentation shows that on at least some platforms (observed with a
Lenovo ThinkPad T14s Gen 5) the vendor SNP driver is broken to the
point of being unusable in anything other than the single use case
envisioned by the firwmare authors.  Doing almost anything directly
via the SNP protocol interface has a greater than 50% chance of
locking up the system.

Assume, in the absence of any evidence to the contrary so far, that
vendor SNP drivers for wireless network devices are so badly written
as to be unusable.  Refuse to even attempt to interact with these
drivers via the SNP or NII protocol interfaces.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-07-15 09:12:54 +01:00
parent c3376f8645
commit 7ac4b3c6f1
5 changed files with 36 additions and 7 deletions

View File

@@ -41,8 +41,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
* @ret rc Return status code
*/
static int snp_supported ( EFI_HANDLE device ) {
EFI_GUID *protocol = &efi_simple_network_protocol_guid;
return snpnet_supported ( device, &efi_simple_network_protocol_guid );
return snpnet_supported ( device, protocol, 1 );
}
/**
@@ -52,8 +53,9 @@ static int snp_supported ( EFI_HANDLE device ) {
* @ret rc Return status code
*/
static int nii_supported ( EFI_HANDLE device ) {
EFI_GUID *protocol = &efi_nii31_protocol_guid;
return snpnet_supported ( device, &efi_nii31_protocol_guid );
return snpnet_supported ( device, protocol, 1 );
}
/** EFI SNP driver */