summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorPoornima Tom <poornima.tom@intel.com>2024-04-11 07:07:42 +0530
committerJérémy Compostella <jeremy.compostella@intel.com>2024-07-03 17:01:25 +0000
commit89566946fb6ff46b85ae2c560076fb377d0f8128 (patch)
treecce9ccb6cc8837401de3d52a57e61f7b91325dd4 /src/vendorcode
parent71dda74fe8addc0beffffc5a039c896c3f910640 (diff)
drivers/wifi: Support 320Mhz Bandwidth Enablement per MCC
Add support for the configuration of 320MHz Bandwidth per MCC based on countries. The implementation follows document #559910 Intel Connectivity Platforms BIOS Guidelines revision 8.3. BUG=b:333804562 BRANCH=firmware-rex-15709.B TEST=WBEM method is added to the CNVW device and return the data supplied by the SAR binary blob Change-Id: Ie76794825f1a0104d199c078aa4ffc714aa95b17 Signed-off-by: Poornima Tom <poornima.tom@intel.com> Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81790 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/google/chromeos/sar.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vendorcode/google/chromeos/sar.c b/src/vendorcode/google/chromeos/sar.c
index 8195886ebc..50c59d5ed0 100644
--- a/src/vendorcode/google/chromeos/sar.c
+++ b/src/vendorcode/google/chromeos/sar.c
@@ -102,6 +102,14 @@ static int bsar_table_size(const struct bsar_profile *bsar)
return sizeof(struct bsar_profile);
}
+static int wbem_table_size(const struct wbem_profile *wbem)
+{
+ if (wbem == NULL)
+ return 0;
+
+ return sizeof(struct wbem_profile);
+}
+
static bool valid_legacy_length(size_t bin_len)
{
if (bin_len == LEGACY_SAR_WGDS_BIN_SIZE)
@@ -154,6 +162,7 @@ static int fill_wifi_sar_limits(union wifi_sar_limits *sar_limits, const uint8_t
expected_sar_bin_size += sar_avg_table_size(sar_limits->wtas);
expected_sar_bin_size += dsm_table_size(sar_limits->dsm);
expected_sar_bin_size += bsar_table_size(sar_limits->bsar);
+ expected_sar_bin_size += wbem_table_size(sar_limits->wbem);
if (sar_bin_size != expected_sar_bin_size) {
printk(BIOS_ERR, "Invalid SAR size, expected: %zu, obtained: %zu\n",
@@ -220,6 +229,7 @@ static int fill_wifi_sar_limits_legacy(union wifi_sar_limits *sar_limits,
* [WTAS_REVISION, WTAS_DATA]
* [DSM_RETURN_VALUES]
* [BSAR_REVISION,IPML,LB,BR,EDR2,EDR3,LE,LE2,LE_LR]
+ * [WBEM_REVISION, WBEM_DATA]
*
* The configuration data will always have the revision added in the file for each of the
* block, based on the revision number and validity, size of the specific block will be
@@ -259,6 +269,8 @@ static int fill_wifi_sar_limits_legacy(union wifi_sar_limits *sar_limits,
* [Enable/disable the TAS feature]
* [Number of blocked countries that are not approved by the OEM to support this feature]
* [deny_list_entry_<1-16>: ISO country code to block]
+ * [WBEM_DATA] =
+ * [Enable or disable 320MHZ Bandwidth for Japan, SouthKorea]
*/
int get_wifi_sar_limits(union wifi_sar_limits *sar_limits)
{