From 1e8c6819b16ef5e21b2f3f0137a6027367387298 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Thu, 31 Oct 2024 13:08:44 -0700 Subject: drivers/wifi: Support Wi-Fi PHY Filter Configuration This feature provides ability to provide Wi-Fi PHY filter Configuration. A well-defined dedicated filter on particular platform can be used to perform the maximum Wi-Fi performance. The implementation follows document 559910 Intel Connectivity Platforms BIOS Guideline revision 9.2 specification. BUG=b:346600091 TEST=WPFC method is added to the wifi device and return the data supplied by the SAR binary blob Change-Id: Iebe95815c944d045f4cf686abcd1874a8a45e270 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/84948 Reviewed-by: Kapil Porwal Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/vendorcode/google/chromeos/sar.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/vendorcode') diff --git a/src/vendorcode/google/chromeos/sar.c b/src/vendorcode/google/chromeos/sar.c index 6ebf931d7d..1a7497518c 100644 --- a/src/vendorcode/google/chromeos/sar.c +++ b/src/vendorcode/google/chromeos/sar.c @@ -170,6 +170,14 @@ static size_t ebrd_table_size(const struct ebrd_profile *ebrd) return sizeof(struct ebrd_profile); } +static size_t wpfc_table_size(const struct wpfc_profile *wpfc) +{ + if (wpfc == NULL) + return 0; + + return sizeof(struct wpfc_profile); +} + static bool valid_legacy_length(size_t bin_len) { if (bin_len == LEGACY_SAR_WGDS_BIN_SIZE) @@ -230,6 +238,7 @@ static int fill_wifi_sar_limits(union wifi_sar_limits *sar_limits, const uint8_t expected_sar_bin_size += bucs_table_size(sar_limits->bucs); expected_sar_bin_size += bdmm_table_size(sar_limits->bdmm); expected_sar_bin_size += ebrd_table_size(sar_limits->ebrd); + expected_sar_bin_size += wpfc_table_size(sar_limits->wpfc); if (sar_bin_size != expected_sar_bin_size) { printk(BIOS_ERR, "Invalid SAR size, expected: %zu, obtained: %zu\n", -- cgit v1.2.3