Browse Source

qcacmn: Change WMI command limit to 256 from 1024

qcacld-2.0 to qcacmn propagation

To debug the fwr stuck issue as early as possibile,
reduce the wmi max pending command threshold to 256
from 1024.

Change-Id: Ic3cbe26cca979dcaa68fca03e6fe1af397cf0c4f
CRs-FIXED: 1080761
Mukul Sharma 8 years ago
parent
commit
5984d920a0
2 changed files with 7 additions and 2 deletions
  1. 5 1
      wmi/inc/wmi_unified_priv.h
  2. 2 1
      wmi/src/wmi_unified.c

+ 5 - 1
wmi/inc/wmi_unified_priv.h

@@ -37,7 +37,11 @@
 #include "qdf_atomic.h"
 
 #define WMI_UNIFIED_MAX_EVENT 0x100
-#define WMI_MAX_CMDS  1024
+#ifdef CONFIG_MCL
+#define WMI_MAX_CMDS  256
+#else
+#define WMI_MAX_CMDS 1024
+#endif
 
 typedef qdf_nbuf_t wmi_buf_t;
 

+ 2 - 1
wmi/src/wmi_unified.c

@@ -1795,7 +1795,8 @@ QDF_STATUS wmi_unified_cmd_send(wmi_unified_t wmi_handle, wmi_buf_t buf,
 		htc_dump_counter_info(wmi_handle->htc_handle);
 		qdf_atomic_dec(&wmi_handle->pending_cmds);
 		QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_ERROR,
-		    "%s: MAX 1024 WMI Pending cmds reached.", __func__);
+			"%s: MAX %d WMI Pending cmds reached.", __func__,
+			WMI_MAX_CMDS);
 		QDF_BUG(0);
 		return QDF_STATUS_E_BUSY;
 	}