summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Babu Kumaravel <kganesh@qti.qualcomm.com>2014-07-08 17:39:18 +0530
committerPitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com>2014-07-10 12:41:23 +0530
commitcb5bacf37df6b57cf238dcbf09e075b1dd94304e (patch)
tree8a8d8c1fd4b82939f43b730447a2c4c669ce36ac
parent12af3dd3f453dac49fe1328964b197ad93423cd2 (diff)
qcacld:Modify target tx descriptors for SDIO
For SDIO Only 16 tx-buffers are hooked onto SDIO MBOX DMA engine in Firmware. So set the targe number of descriptors to map the same. Otherwise Firmware will crash because lack of buffers. So fix the same by configuring the host to match the target.. Change-Id: I2e3c9ab3720f44793a9caacb495082c38a82780a CRs-Fixed: 690491
-rw-r--r--CORE/SERVICES/COMMON/wlan_tgt_def_config_hl.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/CORE/SERVICES/COMMON/wlan_tgt_def_config_hl.h b/CORE/SERVICES/COMMON/wlan_tgt_def_config_hl.h
index 1c23a8595600..1016a25dec2a 100644
--- a/CORE/SERVICES/COMMON/wlan_tgt_def_config_hl.h
+++ b/CORE/SERVICES/COMMON/wlan_tgt_def_config_hl.h
@@ -207,8 +207,21 @@
/*
* total number of descriptors to use in the target
*/
+#ifndef HIF_SDIO
#define CFG_TGT_NUM_MSDU_DESC (32)
-
+#else
+/*
+ * For SDIO Only 16 tx-buffers are hooked onto SDIO MBOX DMA engine
+ * in Firmware. So set the targe number of descriptors to map the
+ * same.
+ * This is only temporary solution.
+ * The better solution is defining CFG_TGT_NUM_MSDU_DESC to be 0
+ * and waiting for an initial TX_TARGET_CREDIT_UPDATE_IND message
+ * from the FW to know how many tx buffers the FW has provided
+ * for the host's downloads.
+ */
+#define CFG_TGT_NUM_MSDU_DESC (16)
+#endif
/*
* Maximum number of frag table entries
*/