From d6478e468ad0eab3e0dc6414eba6011096e7a1da Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Tue, 20 Oct 2015 18:49:24 -0700 Subject: [PATCH] qcacld-3.0: Modify bus bandwidth vote criterion qcacld-2.0 to qcacld-3.0 propagation If total TX/RX packets are less than bus bandwidth low threshold, there is no need to vote separately from WLAN side. Change-Id: I02284d035e58471b3933a84c778d4d44bd6b19ba CRs-fixed: 918723 --- core/hdd/src/wlan_hdd_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 68b9a8a26b7a..fefe3c257834 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3951,8 +3951,10 @@ void hdd_cnss_request_bus_bandwidth(hdd_context_t *hdd_ctx, next_vote_level = CNSS_BUS_WIDTH_HIGH; else if (total > hdd_ctx->config->busBandwidthMediumThreshold) next_vote_level = CNSS_BUS_WIDTH_MEDIUM; - else + else if (total > hdd_ctx->config->busBandwidthLowThreshold) next_vote_level = CNSS_BUS_WIDTH_LOW; + else + next_vote_level = CNSS_BUS_WIDTH_NONE; hdd_ctx->hdd_txrx_hist[hdd_ctx->hdd_txrx_hist_idx].next_vote_level = next_vote_level;