diff options
-rw-r--r-- | src/mainboard/google/brya/variants/taeko/variant.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/taeko/variant.c b/src/mainboard/google/brya/variants/taeko/variant.c index 6a79780f6e..7d993a4129 100644 --- a/src/mainboard/google/brya/variants/taeko/variant.c +++ b/src/mainboard/google/brya/variants/taeko/variant.c @@ -1,8 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#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, WIFI_SAR_ID_0))) + return "wifi_sar_0.hex"; + else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1))) + return "wifi_sar_1.hex"; + return WIFI_SAR_CBFS_DEFAULT_FILENAME; } |