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>
This commit is contained in:
Sugnan Prabhu S 2021-09-06 15:05:56 +05:30 committed by Patrick Georgi
parent 7181cd28f2
commit 627c8443a3
2 changed files with 4 additions and 4 deletions

View File

@ -450,10 +450,10 @@ static void sar_emit_wtas(struct avg_profile *wtas)
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();

View File

@ -44,7 +44,7 @@ struct avg_profile {
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 {