qcacmn: Increment num_radar_detects for FO everytime radar is detected
With the current implementation, dfs->wlan_dfs_stats.num_radar_detects is incremented for radar detections in partial offload alone. For FO, this stat was not incremented. As a result, when the number of times radar has been detected is queried with radartool, the stat always returns 0. Fix this by incrementing this stat for FO chipsets as well. CRs-Fixed: 2967882 Change-Id: Ibf5ea3f9f358476a2b21eeae782c44e0d53ada52
This commit is contained in:

committed by
Madan Koyyalamudi

parent
ae2a90d9fc
commit
a63dd03feb
@@ -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
|
||||
/**
|
||||
|
@@ -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)
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user