From 59b383e21c5cddc59954404f3437a3c2a4e4013d Mon Sep 17 00:00:00 2001 From: Simon Yang Date: Thu, 28 Dec 2023 14:42:21 +0800 Subject: driver/wifi: DDR RFIM _DSM method function 3 report incorrect value The DDR RFIM _DSM method function 3 need to return: - 0: Enable DDR RFIM feature. - 1: Disable DDR RFIM feature. BUG=b:302084312 TEST=Build, dump SSDT to check _DSM function 3 return value Change-Id: I642c56a9c3160cdb41b254dc75e126cacf905b14 Signed-off-by: Simon Yang Reviewed-on: https://review.coreboot.org/c/coreboot/+/79740 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Rex Chou --- src/drivers/wifi/generic/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/wifi') diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c index f55fca7748..f37a084b53 100644 --- a/src/drivers/wifi/generic/acpi.c +++ b/src/drivers/wifi/generic/acpi.c @@ -144,7 +144,7 @@ static void wifi_dsm_unii4_control_enable(void *args) static void wifi_dsm_ddrrfim_func3_cb(void *ptr) { const bool is_cnvi_ddr_rfim_enabled = *(bool *)ptr; - acpigen_write_return_integer(is_cnvi_ddr_rfim_enabled ? 1 : 0); + acpigen_write_return_integer(is_cnvi_ddr_rfim_enabled ? 0 : 1); } static void (*wifi_dsm_callbacks[])(void *) = { -- cgit v1.2.3