Преглед на файлове

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 години
родител
ревизия
74a849e197
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      umac/dfs/core/src/misc/dfs_zero_cac.c

+ 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);