Browse Source

qcacld-3.0: Reduce high throughput detection level

Currently the API hdd_is_current_high_throughput considers any
throughput level higher(or equal) than PLD_BUS_WIDTH_HIGH as high
throughput level. Based on this level, driver decides to take up RX
wakelock and log certain stats(TDLS). This can have an impact on power
even in HT20 modes.

Reduce the high throughput detection level to PLD_BUS_WIDTH_MEDIUM. So
throughput >= 60Mbps is considered high by the API.

Change-Id: I2225edc55568facf4b74a389b4a0a53845ea14ae
CRs-Fixed: 2495719
Mohit Khanna 5 years ago
parent
commit
b9d7e4e20a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_tx_rx.c

+ 1 - 1
core/hdd/src/wlan_hdd_tx_rx.c

@@ -2840,7 +2840,7 @@ void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx)
  */
 bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
 {
-	if (hdd_ctx->cur_vote_level < PLD_BUS_WIDTH_HIGH)
+	if (hdd_ctx->cur_vote_level < PLD_BUS_WIDTH_MEDIUM)
 		return false;
 	else
 		return true;