From 6aab05a9ea4b636da53d7411dd993dfce0d7c9e8 Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Tue, 17 Jul 2018 15:14:21 -0700 Subject: [PATCH] qcacmn: dfs : Fix compilation issue with dfs offload enable Fix dfs_start_precac_timer() undefined symbol in dfs offload. Change-Id: I05673b5827f448bed55133db809fd59b1a5fffd1 CRs-Fixed: 2280464 --- umac/dfs/core/src/dfs_zero_cac.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/umac/dfs/core/src/dfs_zero_cac.h b/umac/dfs/core/src/dfs_zero_cac.h index 0d18c958e162..e708abdf519f 100644 --- a/umac/dfs/core/src/dfs_zero_cac.h +++ b/umac/dfs/core/src/dfs_zero_cac.h @@ -138,8 +138,15 @@ void dfs_init_precac_list(struct wlan_dfs *dfs); * @dfs: Pointer to wlan_dfs structure. * @precac_chan: Start thr precac timer in this channel. */ +#if defined(WLAN_DFS_PARTIAL_OFFLOAD) void dfs_start_precac_timer(struct wlan_dfs *dfs, - uint8_t precac_chan); + uint8_t precac_chan); +#else +static inline void dfs_start_precac_timer(struct wlan_dfs *dfs, + uint8_t precac_chan) +{ +} +#endif /** * dfs_cancel_precac_timer() - Cancel the precac timer.