From f316ead4db11eb52d6791a71e4b4c6bbe61d469e Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Wed, 10 Jun 2020 10:30:43 +0530 Subject: [PATCH] qcacld-3.0: Vote for high DDR bandwidth in FTM mode In FTM mode, we are not voting for any DDR frequency, which leads to uneven TX/RX duty cycle, since the DDR frequency will entirely depends on any other subsytem's vote. Vote for VERY HIGH BW in FTM mode. Change-Id: I7f85fb9889d9119c7224c9bcd9688327e78f15ff CRs-Fixed: 2706143 --- core/hdd/src/wlan_hdd_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 0b7cceef1284..a7eba34c8c73 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -15612,6 +15612,13 @@ static int __hdd_driver_mode_change(struct hdd_context *hdd_ctx, con_mode = next_mode; hdd_info("Driver mode successfully changed to %d", next_mode); + if (con_mode == QDF_GLOBAL_FTM_MODE) + pld_request_bus_bandwidth(hdd_ctx->parent_dev, + PLD_BUS_WIDTH_VERY_HIGH); + else if (con_mode == QDF_GLOBAL_MISSION_MODE) + pld_request_bus_bandwidth(hdd_ctx->parent_dev, + PLD_BUS_WIDTH_NONE); + return 0; }