mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: Fix Rx throughput level calculation
Currently the rx throughput level is getting set to TP_NONE immediately after it goes high. This will send incorrect values for tcp_adv_win_scaling to cnss-daemon. Fix the RX throuhgput level by making next_rx_level a static variable. Now if next_rx_level is calculated to be HIGH, it will stay HIGH until RX throughput falls below the threshold Change-Id: Iaa36e4ff6d846e29b3beadd998a3d6fd334c1a5b CRs-Fixed: 2004944
This commit is contained in:
parent
b1dd1e8749
commit
c3da706c60
1 changed files with 2 additions and 2 deletions
|
|
@ -5796,7 +5796,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;
|
||||
|
|
@ -5843,7 +5843,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)) {
|
||||
|
|
@ -5851,6 +5850,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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue