summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/variants/constitution/variant.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/brya/variants/constitution/variant.c')
-rw-r--r--src/mainboard/google/brya/variants/constitution/variant.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/constitution/variant.c b/src/mainboard/google/brya/variants/constitution/variant.c
index 6a79780f6e..289481c2ee 100644
--- a/src/mainboard/google/brya/variants/constitution/variant.c
+++ b/src/mainboard/google/brya/variants/constitution/variant.c
@@ -1,8 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <console/console.h>
+#include <fw_config.h>
#include <sar.h>
const char *get_wifi_sar_cbfs_filename(void)
{
- return "wifi_sar_0.hex";
+ if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, ID_0))) {
+ return "wifi_sar_0.hex";
+ }
+ return NULL;
}