diff options
author | Sugnan Prabhu S <sugnan.prabhu.s@intel.com> | 2021-09-06 15:05:56 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-09-09 15:01:35 +0000 |
commit | 627c8443a3ddaded2c1cf4ac0811164eb1943815 (patch) | |
tree | 8a2118f2eedf32cd810dd152e8ec72a712d83599 | |
parent | 7181cd28f26726856f8e19c7417bd15c3c559bd3 (diff) |
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>
-rw-r--r-- | src/drivers/wifi/generic/acpi.c | 6 | ||||
-rw-r--r-- | src/include/sar.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c index e829185d6e..11fc0e084f 100644 --- a/src/drivers/wifi/generic/acpi.c +++ b/src/drivers/wifi/generic/acpi.c @@ -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(); diff --git a/src/include/sar.h b/src/include/sar.h index 5a4f7ae58a..beccb377cd 100644 --- a/src/include/sar.h +++ b/src/include/sar.h @@ -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 { |