From dc60e56610896edb3cfed4b3baa29f6f2ece16e8 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Wed, 21 Dec 2016 14:32:35 -0800 Subject: 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 --- core/wma/src/wma_features.c | 9 --------- 1 file changed, 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; -- cgit v1.2.3