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
This commit is contained in:
Yue Ma 2015-10-20 18:49:24 -07:00 • committed by Prakash Dhavali
commit d6478e468a

View file

@ -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;