diff options
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 120733650dae..71e9ab277871 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -5384,7 +5384,7 @@ static void hdd_pld_request_bus_bandwidth(hdd_context_t *hdd_ctx, uint64_t temp_rx = 0; uint64_t temp_tx = 0; enum pld_bus_width_type next_vote_level = PLD_BUS_WIDTH_NONE; - enum wlan_tp_level next_rx_level = WLAN_SVC_TP_NONE; + static enum wlan_tp_level next_rx_level = WLAN_SVC_TP_NONE; enum wlan_tp_level next_tx_level = WLAN_SVC_TP_NONE; uint32_t delack_timer_cnt = hdd_ctx->config->tcp_delack_timer_count; uint16_t index = 0; @@ -5431,7 +5431,6 @@ static void hdd_pld_request_bus_bandwidth(hdd_context_t *hdd_ctx, hdd_ctx->prev_rx = rx_packets; - next_rx_level = WLAN_SVC_TP_LOW; 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)) { @@ -5439,6 +5438,7 @@ static void hdd_pld_request_bus_bandwidth(hdd_context_t *hdd_ctx, } } else { hdd_ctx->rx_high_ind_cnt = 0; + next_rx_level = WLAN_SVC_TP_LOW; } if (hdd_ctx->cur_rx_level != next_rx_level) { |
