diff options
| author | Komal Seelam <kseelam@codeaurora.org> | 2016-02-15 10:31:44 +0530 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@codeaurora.org> | 2016-03-23 13:45:08 -0700 |
| commit | d910649caa2c5cf91f0269ffecf76ffb7c0fc3e1 (patch) | |
| tree | 2e331e74b9ecece529ff02587b0edd51b7e4b91f /core/utils/epping | |
| parent | 02d0934a4a83aee8bd0940f5869c032a194d3ca6 (diff) | |
qcacld-3.0: Create OL BMI Context in global CDS Context.
Create bmi context in global cds context for BMI operations.
Modify HIF BMI API to pass dma command and response
Pass BMI DMA Command and Response address to HIF BMI API as
arguments instead of using bmi context in HIF.
Change-Id: Ifdb51581a33665b1857c63e33b1c26bbd99575eb
CRs-Fixed: 967765
Diffstat (limited to 'core/utils/epping')
| -rw-r--r-- | core/utils/epping/src/epping_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/utils/epping/src/epping_main.c b/core/utils/epping/src/epping_main.c index 921746dc839f..59da7cb16478 100644 --- a/core/utils/epping/src/epping_main.c +++ b/core/utils/epping/src/epping_main.c @@ -183,6 +183,7 @@ int epping_enable(struct device *parent_dev) tSirMacAddr adapter_macAddr; struct hif_config_info *cfg; struct hif_target_info *tgt_info; + struct ol_context *ol_ctx; EPPING_LOG(CDF_TRACE_LEVEL_INFO_HIGH, "%s: Enter", __func__); @@ -225,9 +226,10 @@ int epping_enable(struct device *parent_dev) /* store target type and target version info in hdd ctx */ pEpping_ctx->target_type = tgt_info->target_type; + ol_ctx = cds_get_context(CDF_MODULE_ID_BMI); #ifndef FEATURE_BMI_2 /* Initialize BMI and Download firmware */ - if (bmi_download_firmware(scn)) { + if (bmi_download_firmware(ol_ctx)) { CDF_TRACE(CDF_MODULE_ID_CDF, CDF_TRACE_LEVEL_FATAL, "%s: BMI failed to download target", __func__); bmi_cleanup(scn); @@ -258,7 +260,7 @@ int epping_enable(struct device *parent_dev) return -1; } - if (bmi_done(scn)) { + if (bmi_done(ol_ctx)) { EPPING_LOG(CDF_TRACE_LEVEL_FATAL, "%s: Failed to complete BMI phase", __func__); goto error_end; |
