summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlifeng <lifeng@qti.qualcomm.com>2015-11-23 13:58:09 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-12-04 16:21:40 +0530
commit38f1aa5597dad2ebf5a22e53812871e22d42ccfa (patch)
treeb12e8f90483cc8a7cf8aca7e650b89c1aecc189b
parent6a79bdf283c718e365c7959c4834a861210f97d1 (diff)
qcacld-2.0: Fix roaming take too long time
The counting error of tx pending frames in high latency mode misleads the driver to waste time waiting for the outstanding packet to drain as roaming, but in fact there is no pending. Fix is to assign the "orig_target_tx_credit" atomic variable correctly when the wlan device attach. Change-Id: I7d277f66fa9763d4c8573ccaf3ff01512e14a780 CRs-Fixed: 943866
-rw-r--r--CORE/CLD_TXRX/TXRX/ol_txrx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/CLD_TXRX/TXRX/ol_txrx.c b/CORE/CLD_TXRX/TXRX/ol_txrx.c
index 35576940b9da..74369051e810 100644
--- a/CORE/CLD_TXRX/TXRX/ol_txrx.c
+++ b/CORE/CLD_TXRX/TXRX/ol_txrx.c
@@ -408,6 +408,10 @@ ol_txrx_pdev_attach(
ol_cfg_target_tx_credit(pdev->ctrl_pdev), &pdev->target_tx_credit);
}
+ if (ol_cfg_is_high_latency(ctrl_pdev)) {
+ ol_tx_target_credit_init(pdev, desc_pool_size);
+ }
+
pdev->htt_pdev = htt_attach(
pdev, ctrl_pdev, htc_pdev, osdev, desc_pool_size);
if (!pdev->htt_pdev) {