qcacld-3.0: Get netdev stats from DP interface

While requesting sta stats, tx/rx netdev stats update are
happening from adapter. But as part of latest code change
these stats are moved from adapter to dp interface, because
of which some of stats values are displayed as 0.

To Fix the issue get tx/rx netdev stats from dp interface,
Also add calls to clear netdev stats

Change-Id: I64523b035c1d902ccc4a45d82f7508751e518150
CRs-Fixed: 3247540
This commit is contained in:
Amit Mehta
2022-07-25 22:04:58 -07:00
committed by Madan Koyyalamudi
parent f62b46e07c
commit f0dd63a14e
7 changed files with 97 additions and 16 deletions

View File

@@ -1059,7 +1059,7 @@ uint32_t ucfg_dp_get_bus_bw_compute_interval(struct wlan_objmgr_psoc *psoc);
int ucfg_dp_get_current_throughput_level(struct wlan_objmgr_psoc *psoc);
/**
* ucfg_dp_get_txrx_stats() - get current bandwidth level
* ucfg_dp_get_txrx_stats() - get dp txrx stats
* @vdev: vdev handle
* @dp_stats : dp_stats pointer
*
@@ -1070,6 +1070,24 @@ int ucfg_dp_get_current_throughput_level(struct wlan_objmgr_psoc *psoc);
QDF_STATUS ucfg_dp_get_txrx_stats(struct wlan_objmgr_vdev *vdev,
struct dp_tx_rx_stats *dp_stats);
/*
* ucfg_dp_get_net_dev_stats(): Get netdev stats
* @vdev: vdev handle
* @stats: To hold netdev stats
*
* Return: None
*/
void ucfg_dp_get_net_dev_stats(struct wlan_objmgr_vdev *vdev,
qdf_net_dev_stats *stats);
/*
* ucfg_dp_clear_net_dev_stats(): Clear netdev stats
* @dev: Pointer to netdev
*
* Return: None
*/
void ucfg_dp_clear_net_dev_stats(qdf_netdev_t dev);
/**
* ucfg_dp_reset_cont_txtimeout_cnt() - Reset Tx Timeout count
* @vdev: vdev handle