diff --git a/target_if/dfs/src/target_if_dfs_full_offload.c b/target_if/dfs/src/target_if_dfs_full_offload.c index 738984bffc..d5f82bb9ec 100644 --- a/target_if/dfs/src/target_if_dfs_full_offload.c +++ b/target_if/dfs/src/target_if_dfs_full_offload.c @@ -274,6 +274,7 @@ static int target_if_dfs_reg_ocac_event(struct wlan_objmgr_psoc *psoc) } #endif +#if defined(WLAN_DFS_FULL_OFFLOAD) QDF_STATUS target_if_dfs_reg_offload_events( struct wlan_objmgr_psoc *psoc) { @@ -299,6 +300,7 @@ QDF_STATUS target_if_dfs_reg_offload_events( else return QDF_STATUS_SUCCESS; } +#endif #if defined(QCA_SUPPORT_AGILE_DFS) QDF_STATUS target_send_ocac_abort_cmd(struct wlan_objmgr_pdev *pdev) diff --git a/umac/dfs/core/src/misc/dfs_full_offload.c b/umac/dfs/core/src/misc/dfs_full_offload.c index 4e8b9e8ac8..026cfcc0d6 100644 --- a/umac/dfs/core/src/misc/dfs_full_offload.c +++ b/umac/dfs/core/src/misc/dfs_full_offload.c @@ -27,6 +27,7 @@ #include "../dfs_internal.h" #include "../dfs_full_offload.h" +#if defined(WLAN_DFS_FULL_OFFLOAD) int dfs_fill_emulate_bang_radar_test(struct wlan_dfs *dfs, uint8_t segid, bool is_chirp, int32_t freq_offset, struct dfs_emulate_bang_radar_test_cmd *dfs_unit_test) @@ -60,3 +61,4 @@ int dfs_fill_emulate_bang_radar_test(struct wlan_dfs *dfs, return 0; } +#endif