diff options
author | Ravi Sarawadi <ravishankar.sarawadi@intel.com> | 2024-05-06 09:58:52 -0700 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-06-27 04:52:39 +0000 |
commit | 511222c187e86175bf9832a62619a05d1900c1fb (patch) | |
tree | 0a83425d3128363a1370313dd2d12c17c1bb88ed /src/drivers | |
parent | a3dc6c0d352d07c2e36595d3bd54c94e6898ace6 (diff) |
drivers/wifi: Support Wi-Fi 7 11be Enablement
Add 802.11be (aka. Wi-Fi 7) enable/disable support based on document
559910 Intel Connectivity Platforms BIOS_Guidelines revision 8.3.
There are countries where Wi-Fi 7 should be disabled by default. This
adds capability for OEM to enable or disable by updating the board
specific Specific Absorption Rate (SAR) binary.
BUG=b:348345300
BRANCH=firmware-rex-15709.B
TEST=SSDT dump shows that the _DSM method returns the value supplied
by the SAR binary for function 12
Change-Id: Ifa1482d7511f48f5138d4c68566f07ce79f37a7a
Signed-off-by: Ravi Sarawadi <ravishankar.sarawadi@intel.com>
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82207
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
Reviewed-by: YH Lin <yueherngl@google.com>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/wifi/generic/acpi.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c index fd1da06934..d3da51b116 100644 --- a/src/drivers/wifi/generic/acpi.c +++ b/src/drivers/wifi/generic/acpi.c @@ -143,6 +143,28 @@ static void wifi_dsm_unii4_control_enable(void *args) acpigen_write_return_integer(dsm_config->unii_4); } +/* + * Function 12: Control Enablement 802.11be on certificated modules + * Bit 0 + * 0 - 11BE disabled for China Mainland + * 1 - 11BE enabled for China Mainland + * + * Bit 1 + * 0 - 11BE disabled for South Korea + * 1 - 11BE enabled for South Korea + * + * Bit 2:27 - Reserved (shall be set to zeroes) + * + * Bit 28:31 - 11BE enablement revision + * + */ +static void wifi_dsm_11be_country_enablement(void *args) +{ + struct dsm_profile *dsm_config = (struct dsm_profile *)args; + + acpigen_write_return_integer(dsm_config->enablement_11be); +} + static void wifi_dsm_ddrrfim_func3_cb(void *ptr) { const bool is_cnvi_ddr_rfim_enabled = *(bool *)ptr; @@ -158,6 +180,11 @@ static void (*wifi_dsm_callbacks[])(void *) = { wifi_dsm_uart_configurations, /* Function 5 */ wifi_dsm_ukrane_russia_11ax_enable, /* Function 6 */ wifi_dsm_unii4_control_enable, /* Function 7 */ + NULL, /* Function 8 */ + NULL, /* Function 9 */ + NULL, /* Function 10 */ + NULL, /* Function 11 */ + wifi_dsm_11be_country_enablement, /* Function 12 */ }; /* |