git: 97ddb6371b72 - main - iwlwifi: fix iwl_uefi_get_uats_table() if not compiled with ACPI
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Apr 2025 21:26:28 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=97ddb6371b7206c622de40745927e98f0dfd2e85
commit 97ddb6371b7206c622de40745927e98f0dfd2e85
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-04-11 15:22:55 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-04-11 21:26:06 +0000
iwlwifi: fix iwl_uefi_get_uats_table() if not compiled with ACPI
Apply a temporary fix to FreeBSD only to allow AX101 to proceed
further. While this fix results in a debug error message if
firmware debugging is on we currently take this for the version
we have. A proper fix will eventually show up in future versions
of iwlwifi.
Sponsored by: The FreeBSD Foundation
Reported by: bapt
Tested by: bapt
MFC after: 3 days
---
sys/contrib/dev/iwlwifi/fw/uefi.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/contrib/dev/iwlwifi/fw/uefi.h b/sys/contrib/dev/iwlwifi/fw/uefi.h
index 1f8884ca8997..50327bb8c2d6 100644
--- a/sys/contrib/dev/iwlwifi/fw/uefi.h
+++ b/sys/contrib/dev/iwlwifi/fw/uefi.h
@@ -318,7 +318,11 @@ static inline
int iwl_uefi_get_uats_table(struct iwl_trans *trans,
struct iwl_fw_runtime *fwrt)
{
+#if defined(__linux__)
return 0;
+#elif defined(__FreeBSD__)
+ return -ENOENT;
+#endif
}
#endif /* CONFIG_EFI */
#endif /* __iwl_fw_uefi__ */