From 457b26718aeda5f265fc563d29ab15d06d4be4b3 Mon Sep 17 00:00:00 2001 From: Priyadarshnee S Date: Tue, 26 Mar 2019 14:06:38 +0530 Subject: [PATCH] qcacmn: Correct issues in DFS Full Offload featurization Change I498ac1f8cd1d6423032d7b3b8c233656c5f0bf22 ("qcacmn: Have separate macros for DA/PO/FO to reduce the code size") introduced featurization of the DFS logic. Two functions, target_if_dfs_reg_offload_events() and dfs_fill_emulate_bang_radar_test(), were not correctly featurized, resulting in compilation failures when WLAN_DFS_FULL_OFFLOAD is not enabled. To prevent these failures properly featurize the functions. CRs-Fixed: 2366596 Change-Id: I4bcecf95d92cb3ebe2ff893c17755385dda11429 --- target_if/dfs/src/target_if_dfs_full_offload.c | 2 ++ umac/dfs/core/src/misc/dfs_full_offload.c | 2 ++ 2 files changed, 4 insertions(+) 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 738984bffcd3..d5f82bb9ec8c 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 4e8b9e8ac8c8..026cfcc0d62b 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