diff options
| author | Prashanth Bhatta <bhattap@qca.qualcomm.com> | 2014-03-26 13:40:04 -0700 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-03-27 09:22:10 -0700 |
| commit | cf62b07d1c160ef05b36bd261b7188fbd07a0c68 (patch) | |
| tree | 9724e4fc18914d46fb802a859c431b259117ab14 | |
| parent | 2eb82761c6b80de7f6850ad22f3e01c4167ef2cb (diff) | |
qcacld: ipa: Make sure IPA RM doesn't suspend
With the changes done in IPA driver for resource manager (RM),
WLAN driver need to make sure pipe is not suspended by setting a
flag in IPA driver if IPA RM is not enabled. Adding changes to
set the flag if IPA RM is not enabled in ini file.
Change-Id: Ic785213586155881ec2002a624069d66e20a38c2
CRs-fxied: 636694
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_ipa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_ipa.c b/CORE/HDD/src/wlan_hdd_ipa.c index a198040111e3..43e9a44a5fa6 100644 --- a/CORE/HDD/src/wlan_hdd_ipa.c +++ b/CORE/HDD/src/wlan_hdd_ipa.c @@ -938,6 +938,9 @@ static int hdd_ipa_setup_sys_pipe(struct hdd_ipa_priv *hdd_ipa) ipa->ipa_ep_cfg.hdr.hdr_len = HDD_IPA_WLAN_TX_HDR_LEN; ipa->ipa_ep_cfg.mode.mode = IPA_BASIC; + if (!hdd_ipa_is_rm_enabled(hdd_ipa)) + ipa->keep_ipa_awake = 1; + ret = ipa_setup_sys_pipe(ipa, &(hdd_ipa->sys_pipe[i].conn_hdl)); if (ret) { HDD_IPA_LOG(VOS_TRACE_LEVEL_ERROR, "Failed for pipe %d" @@ -966,6 +969,9 @@ static int hdd_ipa_setup_sys_pipe(struct hdd_ipa_priv *hdd_ipa) ipa->ipa_ep_cfg.hdr.hdr_ofst_metadata_valid = 1; ipa->ipa_ep_cfg.mode.mode = IPA_BASIC; + if (!hdd_ipa_is_rm_enabled(hdd_ipa)) + ipa->keep_ipa_awake = 1; + ret = ipa_setup_sys_pipe(ipa, &(hdd_ipa->sys_pipe[i].conn_hdl)); if (ret) { HDD_IPA_LOG(VOS_TRACE_LEVEL_ERROR, "Failed for RX pipe: %d", |
