qcacmn: Update netdevice stats to reflect ifconfig counters

netdevice_stats structure tx/rx/drop/error counters are assigned
proper values

Change-Id: I8e123a810a02292339a34b54bfebe3a56ae99dbd
This commit is contained in:
Anish Nataraj
2018-03-14 14:27:13 +05:30
committed by nshrivas
parent 0573462cb2
commit f12b0a3463
4 changed files with 48 additions and 13 deletions

View File

@@ -1395,13 +1395,8 @@ void cdp_vdev_tx_unlock(ol_txrx_soc_handle soc,
*
* Return: void
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
static inline void cdp_ath_getstats(ol_txrx_soc_handle soc,
struct cdp_pdev *pdev, struct net_device_stats *stats)
#else
static inline void cdp_ath_getstats(ol_txrx_soc_handle soc,
struct cdp_pdev *pdev, struct rtnl_link_stats64 *stats)
#endif
struct cdp_pdev *pdev, struct cdp_dev_stats *stats)
{
if (soc && soc->ops && soc->ops->cmn_drv_ops->txrx_ath_getstats)
soc->ops->cmn_drv_ops->txrx_ath_getstats(pdev, stats);