Эх сурвалжийг харах

qca-wifi: Make the initialization of dfs->dfs_soc_obj unconditional

With the current implementation dfs->dfs_soc_obj was initialized in
function dfs_agile_soc_obj_init under the macro QCA_SUPPORT_AGILE_DFS
and ATH_SUPPORT_ZERO_CAC_DFS both of which are disabled for the low
memory profiles. Remove the initialization from here and unconditionally
initialize it in wlan_dfs_pdev_obj_create_notification.

Change-Id: I207ed4e7d5cb42100e5bf1cbf55cdd9de13f35b8
Ananya Barat 4 жил өмнө
parent
commit
74a849e197

+ 1 - 3
umac/dfs/core/src/misc/dfs_zero_cac.c

@@ -2220,14 +2220,12 @@ void dfs_agile_soc_obj_init(struct wlan_dfs *dfs,
 {
 	struct dfs_soc_priv_obj *dfs_soc_obj;
 
-	dfs_soc_obj = wlan_objmgr_psoc_get_comp_private_obj(psoc,
-							    WLAN_UMAC_COMP_DFS);
+	dfs_soc_obj = dfs->dfs_soc_obj;
 	dfs->dfs_psoc_idx = dfs_soc_obj->num_dfs_privs;
 	dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS,
 		 "dfs->dfs_psoc_idx: %d ", dfs->dfs_psoc_idx);
 	dfs_soc_obj->dfs_priv[dfs_soc_obj->num_dfs_privs].dfs = dfs;
 	dfs_soc_obj->num_dfs_privs++;
-	dfs->dfs_soc_obj = dfs_soc_obj;
 
 	dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS, "dfs_soc_obj->num_dfs_privs: %d ",
 		 dfs_soc_obj->num_dfs_privs);