Browse Source

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
Yue Ma 9 years ago
parent
commit
b9ea56ed9e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      core/hdd/src/wlan_hdd_main.c

+ 3 - 1
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;