summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Joshi <ravij@codeaurora.org>2016-10-07 16:20:37 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-10-17 21:58:10 -0700
commitfed835703b7a65b7daeb45eb681b506572c936aa (patch)
tree6457e9b7e8008a62dca2d4ba5d2a090bee3a2f3c
parent970a6336ee2996715e606fbfd6970802eecd68d0 (diff)
qcacld-3.0: Fix throughput regression in 5G TCP DL due to tcp delack
Incorrect integration of a change caused tcp delayed ack not to trigger resulting in overall lower throughput. Change-Id: I3a35a70515e4e61a4c81f14f8881e989ac5ac039 CRs-Fixed: 1075723
-rw-r--r--core/hdd/src/wlan_hdd_main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 15d27321fe8c..b0fc02c6397a 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -5305,10 +5305,11 @@ static void hdd_pld_request_bus_bandwidth(hdd_context_t *hdd_ctx,
temp_rx = (rx_packets + hdd_ctx->prev_rx) / 2;
hdd_ctx->prev_rx = rx_packets;
- if (temp_rx > hdd_ctx->config->tcpDelackThresholdHigh &&
- (hdd_ctx->cur_rx_level != WLAN_SVC_TP_HIGH &&
- ++hdd_ctx->rx_high_ind_cnt == delack_timer_cnt)) {
- next_rx_level = WLAN_SVC_TP_HIGH;
+ if (temp_rx > hdd_ctx->config->tcpDelackThresholdHigh) {
+ if ((hdd_ctx->cur_rx_level != WLAN_SVC_TP_HIGH) &&
+ (++hdd_ctx->rx_high_ind_cnt == delack_timer_cnt)) {
+ next_rx_level = WLAN_SVC_TP_HIGH;
+ }
} else {
next_rx_level = WLAN_SVC_TP_LOW;
hdd_ctx->rx_high_ind_cnt = 0;