浏览代码

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 年之前
父节点
当前提交
6ace4e5448
共有 1 个文件被更改,包括 3 次插入1 次删除
  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)