qcacld-3.0: Add UCFG API to get per link peer stats

Add new UCFG API to get per link peer stats.

Change-Id: I343b9a96610f64df33f8cc56e7a08c3282043fac
CRs-Fixed: 3442905
This commit is contained in:
Amit Mehta
2023-03-13 05:32:28 -07:00
committed by Madan Koyyalamudi
parent 11d73706a0
commit 434b0fbabe
2 changed files with 33 additions and 0 deletions

View File

@@ -1473,4 +1473,24 @@ QDF_STATUS ucfg_dp_txrx_ext_dump_stats(ol_txrx_soc_handle soc,
QDF_STATUS ucfg_dp_txrx_set_cpu_mask(ol_txrx_soc_handle soc, QDF_STATUS ucfg_dp_txrx_set_cpu_mask(ol_txrx_soc_handle soc,
qdf_cpu_mask *new_mask); qdf_cpu_mask *new_mask);
/**
* ucfg_dp_get_per_link_peer_stats() - Call to get per link peer stats
* @soc: soc handle
* @vdev_id: vdev_id of vdev object
* @peer_mac: mac address of the peer
* @peer_stats: destination buffer
* @peer_type: Peer type
* @num_link: Number of ML links
*
* NOTE: For peer_type = CDP_MLD_PEER_TYPE peer_stats should point to
* buffer of size = (sizeof(*peer_stats) * num_link)
*
* Return: QDF_STATUS
*/
QDF_STATUS
ucfg_dp_get_per_link_peer_stats(ol_txrx_soc_handle soc, uint8_t vdev_id,
uint8_t *peer_mac,
struct cdp_peer_stats *peer_stats,
enum cdp_peer_type peer_type,
uint8_t num_link);
#endif /* _WLAN_DP_UCFGi_API_H_ */ #endif /* _WLAN_DP_UCFGi_API_H_ */

View File

@@ -39,6 +39,7 @@
#include <qdf_net_stats.h> #include <qdf_net_stats.h>
#include "wlan_dp_prealloc.h" #include "wlan_dp_prealloc.h"
#include "wlan_dp_rx_thread.h" #include "wlan_dp_rx_thread.h"
#include <cdp_txrx_host_stats.h>
#ifdef FEATURE_DIRECT_LINK #ifdef FEATURE_DIRECT_LINK
/** /**
@@ -2416,3 +2417,15 @@ QDF_STATUS ucfg_dp_txrx_set_cpu_mask(ol_txrx_soc_handle soc,
{ {
return dp_txrx_set_cpu_mask(soc, new_mask); return dp_txrx_set_cpu_mask(soc, new_mask);
} }
QDF_STATUS
ucfg_dp_get_per_link_peer_stats(ol_txrx_soc_handle soc, uint8_t vdev_id,
uint8_t *peer_mac,
struct cdp_peer_stats *peer_stats,
enum cdp_peer_type peer_type,
uint8_t num_link)
{
return cdp_host_get_per_link_peer_stats(soc, vdev_id, peer_mac,
peer_stats, peer_type,
num_link);
}