From 0e9ed4cf132685f28cb23c0bace4cef69a3185d7 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Sirasanagandla Date: Fri, 3 Feb 2017 20:41:20 +0530 Subject: [PATCH] ath10k: Skip reading of firmware-5.bin file In WCN3990, currently firmware gets loaded via non bmi procedure. Since, firmware-5.bin file is not needed, this change skip parsing and loading of the same. CRs-Fixed: 2002151 Change-Id: I7e02349d73d333296b7beefa4c9cfc435de8f1a4 Signed-off-by: Rajeev Kumar Sirasanagandla --- drivers/net/wireless/ath/ath10k/core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 871329c79a46..4d01846e6115 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -1298,6 +1298,14 @@ err: static int ath10k_core_fetch_firmware_files(struct ath10k *ar) { int ret; + struct ath10k_fw_file *fw_file; + + if (!ar->is_bmi && QCA_REV_WCN3990(ar)) { + fw_file = &ar->normal_mode_fw.fw_file; + fw_file->wmi_op_version = ATH10K_FW_WMI_OP_VERSION_HL_1_0; + fw_file->htt_op_version = ATH10K_FW_HTT_OP_VERSION_TLV; + return 0; + } if (ar->is_bmi) { /* calibration file is optional, don't check for any errors */