From 6ace4e5448e828d7817cd3e5a25fbd4fc96cf21c Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Mon, 1 Aug 2022 16:27:04 +0530 Subject: [PATCH] qcacld-3.0: Fix improper setting of RPS CPU mask RPS CPU mask is getting set even if feature is not enabled, due to this RPS config is taking affect and throughput is degraded. Fix this by checking dynamic RPS enablement before setting RPS CPU mask. Change-Id: I472a600e665271db7ea1e6fa650d88cba7804ab8 CRs-Fixed: 3258049 --- components/dp/core/src/wlan_dp_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/dp/core/src/wlan_dp_main.c b/components/dp/core/src/wlan_dp_main.c index d7e154cdb2..2902703c2c 100644 --- a/components/dp/core/src/wlan_dp_main.c +++ b/components/dp/core/src/wlan_dp_main.c @@ -1378,7 +1378,9 @@ void dp_try_set_rps_cpu_mask(struct wlan_objmgr_psoc *psoc) dp_err("dp context is NULL"); return; } - dp_set_rps_cpu_mask(dp_ctx); + + if (dp_ctx->dynamic_rps) + dp_set_rps_cpu_mask(dp_ctx); } void dp_clear_rps_cpu_mask(struct wlan_dp_psoc_context *dp_ctx)