wifi: Update deny list entry size to uint16_t
As per the connectivity document deny list entry size should be uint16
559910_Intel_Connectivity_Platforms_BIOS_Guidelines_Rev6_4.pdf
Fixes: cc50770cd0("wifi: Add support for wifi time average SAR config")
Change-Id: I045c21350cf4c2266df108eede6350d090322ba0
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57407
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c
index e829185..11fc0e0 100644
--- a/src/drivers/wifi/generic/acpi.c
+++ b/src/drivers/wifi/generic/acpi.c
@@ -450,10 +450,10 @@
acpigen_write_dword(wtas->revision);
acpigen_write_package(package_size);
acpigen_write_dword(DOMAIN_TYPE_WIFI);
- acpigen_write_dword(wtas->tas_selection);
- acpigen_write_dword(wtas->tas_list_size);
+ acpigen_write_byte(wtas->tas_selection);
+ acpigen_write_byte(wtas->tas_list_size);
for (i = 0; i < MAX_DENYLIST_ENTRY; i++)
- acpigen_write_byte(wtas->deny_list_entry[i]);
+ acpigen_write_word(wtas->deny_list_entry[i]);
acpigen_write_package_end();
acpigen_write_package_end();
diff --git a/src/include/sar.h b/src/include/sar.h
index 5a4f7ae..beccb37 100644
--- a/src/include/sar.h
+++ b/src/include/sar.h
@@ -44,7 +44,7 @@
uint8_t revision;
uint8_t tas_selection;
uint8_t tas_list_size;
- uint8_t deny_list_entry[MAX_DENYLIST_ENTRY];
+ uint16_t deny_list_entry[MAX_DENYLIST_ENTRY];
} __packed;
struct dsm_profile {