summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@codeaurora.org>2016-12-21 14:32:35 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-12-23 01:20:57 -0800
commitdc60e56610896edb3cfed4b3baa29f6f2ece16e8 (patch)
tree73acc358fdedefd80be5279d1d97b2a5d465d0a7
parent3c6156fd6b2967a06647b69f37e10e2ee903e9fb (diff)
qcacld-3.0: Remove obsolete credit check from wma suspend
WMI internally has flow control based on credit availability. Remove redundant credit check from wma wow enable API as WMI internally takes care for command queueing and draining based on available credits. Change-Id: I143270032175f0d0d3c2946ae46a97482a406869 CRs-Fixed: 1104182
-rw-r--r--core/wma/src/wma_features.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index 4d05cea8c718..37c9791044dc 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -3912,15 +3912,6 @@ QDF_STATUS wma_enable_wow_in_fw(WMA_HANDLE handle, uint32_t wow_flags)
WMA_LOGD("Credits:%d; Pending_Cmds: %d",
host_credits, wmi_pending_cmds);
- if (host_credits < WMI_WOW_REQUIRED_CREDITS) {
- WMA_LOGE("%s: Host Doesn't have enough credits to Post WMI_WOW_ENABLE_CMDID! "
- "Credits:%d, pending_cmds:%d\n", __func__, host_credits,
- wmi_pending_cmds);
-#ifndef QCA_WIFI_3_0_EMU
- goto error;
-#endif
- }
-
param.enable = true;
param.can_suspend_link = htc_can_suspend_link(wma->htc_handle);
param.flags = wow_flags;