From b9d7e4e20abcb3dc0aec01517b862f093e5aef81 Mon Sep 17 00:00:00 2001 From: Mohit Khanna Date: Mon, 5 Aug 2019 17:43:37 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_tx_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index 9a05b9f4294d..32123fc40972 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/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;