qcacld-3.0: Do not force the compilation of DFS debugging

Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Change-Id: I1b46f13ed3913913eff9b37a4bd1336a1073285b
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Tyler Nijmeh 2021-11-13 00:14:20 +01:00 committed by azrim
parent d1f45d9f0c
commit 2c0a02c586
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C
3 changed files with 23 additions and 1 deletions

View File

@ -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.

View File

@ -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)
{

View File

@ -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 ############