diff --git a/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/dfs.h b/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/dfs.h index 24f5a84c9590..199b6793a27f 100644 --- a/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/dfs.h +++ b/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/dfs.h @@ -1673,22 +1673,36 @@ int dfs_get_random_bin5_dur(struct wlan_dfs *dfs, * @dfs: Pointer to wlan_dfs structure. * @dl: Pointer to dfs_delayline structure. */ +#ifdef DFS_DEBUG void dfs_print_delayline(struct wlan_dfs *dfs, struct dfs_delayline *dl); +#else +static inline void dfs_print_delayline(struct wlan_dfs *dfs, + struct dfs_delayline *dl) {} +#endif /** * dfs_print_nol() - Print NOL elements. * @dfs: Pointer to wlan_dfs structure. */ +#ifdef DFS_DEBUG void dfs_print_nol(struct wlan_dfs *dfs); +#else +static inline void dfs_print_nol(struct wlan_dfs *dfs) {} +#endif /** * dfs_print_filter() - Prints the filter. * @dfs: Pointer to wlan_dfs structure. * @rf: Pointer to dfs_filter structure. */ +#ifdef DFS_DEBUG void dfs_print_filter(struct wlan_dfs *dfs, struct dfs_filter *rf); +#else +static inline void dfs_print_filter(struct wlan_dfs *dfs, + struct dfs_filter *rf) {} +#endif /** * dfs_getchanstate() - Get chan state. @@ -2185,7 +2199,11 @@ void dfs_get_radars_for_ar9300(struct wlan_dfs *dfs); * dfs_print_filters() - Print the filters. * @dfs: Pointer to wlan_dfs structure. */ +#ifdef DFS_DEBUG void dfs_print_filters(struct wlan_dfs *dfs); +#else +static inline void dfs_print_filters(struct wlan_dfs *dfs) {} +#endif /** * dfs_clear_stats() - Clear stats. diff --git a/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/misc/dfs_nol.c b/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/misc/dfs_nol.c index eda749ad4c1b..050aa4ee7b0a 100644 --- a/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/misc/dfs_nol.c +++ b/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/misc/dfs_nol.c @@ -355,6 +355,7 @@ static os_timer_func(dfs_remove_from_nol) #endif #endif +#ifdef DFS_DEBUG void dfs_print_nol(struct wlan_dfs *dfs) { struct dfs_nolelem *nol; @@ -382,6 +383,7 @@ void dfs_print_nol(struct wlan_dfs *dfs) nol = nol->nol_next; } } +#endif void dfs_print_nolhistory(struct wlan_dfs *dfs) { diff --git a/drivers/staging/qcacld-3.0/Kbuild b/drivers/staging/qcacld-3.0/Kbuild index 7504343d6b5e..5f8e084c5066 100644 --- a/drivers/staging/qcacld-3.0/Kbuild +++ b/drivers/staging/qcacld-3.0/Kbuild @@ -508,7 +508,6 @@ else DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload.o \ $(DFS_CORE_SRC_DIR)/filtering/dfs_fcc_bin5.o \ $(DFS_CORE_SRC_DIR)/filtering/dfs_bindetects.o \ - $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o \ $(DFS_CORE_SRC_DIR)/filtering/dfs_init.o \ $(DFS_CORE_SRC_DIR)/filtering/dfs_misc.o \ $(DFS_CORE_SRC_DIR)/filtering/dfs_phyerr_tlv.o \ @@ -518,6 +517,9 @@ DFS_OBJS += $(WLAN_COMMON_ROOT)/target_if/dfs/src/target_if_dfs_partial_offload. $(DFS_CORE_SRC_DIR)/filtering/dfs_radar.o \ $(DFS_CORE_SRC_DIR)/filtering/dfs_partial_offload_radar.o \ $(DFS_CORE_SRC_DIR)/misc/dfs_filter_init.o +ifdef DFS_DEBUG +DFS_OBJS += $(DFS_CORE_SRC_DIR)/filtering/dfs_debug.o +endif endif ############ SME ############