diff options
| author | Mingcheng Zhu <mingchen@qca.qualcomm.com> | 2014-06-04 11:39:14 -0700 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-07-16 21:15:08 -0700 |
| commit | fb1b0c8bd6a305164151a3d5628d840c206b8170 (patch) | |
| tree | de90e9a011cc3c041bfa02e88c1ea8a312de44d8 | |
| parent | dc732eaf59ee8e0339ce70fe2a13a6480d7f5a1a (diff) | |
QCACLD-NEW: Adding endpointping.bin firmware downloading support
endpointping.bin is a special firmware binary for end point ping
feature. BMI is updated to support downloading this special firmware.
CRs-Fixed: 657692
Change-Id: I830cb87602f076aa10e6a46e9527df9ba0c9f4c8
| -rw-r--r-- | CORE/SERVICES/BMI/ol_fw.c | 12 | ||||
| -rw-r--r-- | CORE/SERVICES/BMI/ol_fw.h | 1 |
2 files changed, 11 insertions, 2 deletions
diff --git a/CORE/SERVICES/BMI/ol_fw.c b/CORE/SERVICES/BMI/ol_fw.c index 438ed83c127a..bb2fb2ce53b2 100644 --- a/CORE/SERVICES/BMI/ol_fw.c +++ b/CORE/SERVICES/BMI/ol_fw.c @@ -49,7 +49,7 @@ #include "fw_one_bin.h" #include "bin_sig.h" #include "ar6320v2_dbg_regtable.h" - +#include "epping_main.h" #if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) && defined(CONFIG_CNSS) #include <net/cnss.h> #endif @@ -397,6 +397,12 @@ static int ol_transfer_bin_file(struct ol_softc *scn, ATH_BIN_FILE file, #endif break; case ATH_FIRMWARE_FILE: + if (WLAN_IS_EPPING_ENABLED(vos_get_conparam())) { + filename = QCA_FIRMWARE_EPPING_FILE; + printk(KERN_INFO "%s: Loading epping firmware file %s\n", + __func__, filename); + break; + } #ifdef QCA_WIFI_FTM if (vos_get_conparam() == VOS_FTM_MODE) { #if defined(CONFIG_CNSS) || defined(HIF_SDIO) @@ -1596,7 +1602,9 @@ int ol_download_firmware(struct ol_softc *scn) (u_int8_t *)&address, 4, scn); } - if (scn->enableuartprint) { + if (scn->enableuartprint || + (WLAN_IS_EPPING_ENABLED(vos_get_conparam()) && + WLAN_IS_EPPING_FW_UART(vos_get_conparam()))) { switch (scn->target_version){ case AR6004_VERSION_REV1_3: param = 11; diff --git a/CORE/SERVICES/BMI/ol_fw.h b/CORE/SERVICES/BMI/ol_fw.h index b30f11c253ba..fedd67850ad5 100644 --- a/CORE/SERVICES/BMI/ol_fw.h +++ b/CORE/SERVICES/BMI/ol_fw.h @@ -51,6 +51,7 @@ #define QCA_BOARD_DATA_FILE "fakeboar.bin" #define QCA_OTP_FILE "otp.bin" #define AR61X4_SINGLE_FILE "qca61x4.bin" +#define QCA_FIRMWARE_EPPING_FILE "endpointping.bin" /* Configuration for statistics pushed by firmware */ #define PDEV_DEFAULT_STATS_UPDATE_PERIOD 500 |
