qcacmn: Add API to get and clear pdev obss stats

Add API to send request to Fw to get and clear pdev obss stats.

Change-Id: I2697cc111eba0310d0a65e9911673670ff476c7f
CRs-Fixed: 3295540
This commit is contained in:
Amit Mehta
2022-09-07 02:36:17 -07:00
committed by Madan Koyyalamudi
vanhempi 8cafea036b
commit 95857b39a8
7 muutettua tiedostoa jossa 295 lisäystä ja 0 poistoa

Näytä tiedosto

@@ -1863,6 +1863,26 @@ dp_htt_stats_sysfs_set_event(struct dp_soc *dp_soc, uint32_t *msg_word)
}
#endif /* WLAN_SYSFS_DP_STATS */
/* dp_htt_set_pdev_obss_stats() - Function to set pdev obss stats.
* @pdev: dp pdev handle
* @tag_type: HTT TLV tag type
* @tag_buf: TLV buffer pointer
*
* Return: None
*/
static inline void
dp_htt_set_pdev_obss_stats(struct dp_pdev *pdev, uint32_t tag_type,
uint32_t *tag_buf)
{
if (tag_type != HTT_STATS_PDEV_OBSS_PD_TAG) {
dp_err("Tag mismatch");
return;
}
qdf_mem_copy(&pdev->stats.htt_tx_pdev_stats.obss_pd_stats_tlv,
tag_buf, sizeof(struct cdp_pdev_obss_pd_stats_tlv));
qdf_event_set(&pdev->fw_obss_stats_event);
}
/**
* dp_process_htt_stat_msg(): Process the list of buffers of HTT EXT stats
* @htt_stats: htt stats info
@@ -1992,6 +2012,11 @@ static inline void dp_process_htt_stat_msg(struct htt_stats_context *htt_stats,
tlv_type,
tlv_start);
if (cookie_msb & DBG_STATS_COOKIE_HTT_OBSS)
dp_htt_set_pdev_obss_stats(pdev,
tlv_type,
tlv_start);
msg_remain_len -= tlv_remain_len;
msg_word = (uint32_t *)