diff --git a/umac/dfs/core/src/dfs_process_radar_found_ind.h b/umac/dfs/core/src/dfs_process_radar_found_ind.h index 9b5bc5b484..3c124309a3 100644 --- a/umac/dfs/core/src/dfs_process_radar_found_ind.h +++ b/umac/dfs/core/src/dfs_process_radar_found_ind.h @@ -317,6 +317,21 @@ int dfs_get_nol_subchannel_marking(struct wlan_dfs *dfs, bool *nol_subchannel_marking); +#ifdef WLAN_DFS_FULL_OFFLOAD +/** + * dfs_inc_num_radar - Increment radar detect stats for FO. + * + * @dfs: Pointer to the wlan_dfs object. + * + * Return: void. + */ +void dfs_inc_num_radar(struct wlan_dfs *dfs); +#else +static inline void dfs_inc_num_radar(struct wlan_dfs *dfs) +{ +} +#endif + #if defined(WLAN_DFS_TRUE_160MHZ_SUPPORT) && defined(WLAN_DFS_FULL_OFFLOAD) #define DFS_80P80MHZ_SECOND_SEG_OFFSET 85 /** diff --git a/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c b/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c index 4f1c7512bc..b52cc6badd 100644 --- a/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c +++ b/umac/dfs/core/src/misc/dfs_process_radar_found_ind.c @@ -772,6 +772,13 @@ int dfs_second_segment_radar_disable(struct wlan_dfs *dfs) return 0; } +#ifdef WLAN_DFS_FULL_OFFLOAD +void dfs_inc_num_radar(struct wlan_dfs *dfs) +{ + dfs->wlan_dfs_stats.num_radar_detects++; +} +#endif /* WLAN_DFS_FULL_OFFLOAD */ + #if defined(WLAN_DFS_TRUE_160MHZ_SUPPORT) && defined(WLAN_DFS_FULL_OFFLOAD) void dfs_translate_radar_params(struct wlan_dfs *dfs, struct radar_found_info *radar_found) diff --git a/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c b/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c index 1d8fb0c72c..c5175cdb11 100644 --- a/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c +++ b/umac/dfs/dispatcher/src/wlan_dfs_tgt_api.c @@ -548,6 +548,7 @@ QDF_STATUS tgt_dfs_process_radar_ind(struct wlan_objmgr_pdev *pdev, dfs_translate_radar_params(dfs, radar_found); status = dfs_process_radar_ind(dfs, radar_found); + dfs_inc_num_radar(dfs); return status; }