Browse Source

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
Karthik Kantamneni 2 years ago
parent
commit
6ace4e5448
1 changed files with 3 additions and 1 deletions
  1. 3 1
      components/dp/core/src/wlan_dp_main.c

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