From 98f477c271b91b8d5ceb7da898c33f001b64ffb8 Mon Sep 17 00:00:00 2001 From: Sergei Makarenkov Date: Fri, 10 Feb 2017 13:28:40 +0300 Subject: [PATCH] Count injected frames in interface stats --- core/rtw_xmit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/rtw_xmit.c b/core/rtw_xmit.c index 3ec4cef..f931d97 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -4005,6 +4005,8 @@ s32 rtw_monitor_xmit_entry(struct sk_buff *skb, struct net_device *ndev) pattrib->last_txcmdsz = pattrib->pktlen; dump_mgntframe(padapter, pmgntframe); DBG_COUNTER(padapter->tx_logs.core_tx); + pxmitpriv->tx_pkts++; + pxmitpriv->tx_bytes += skb->len; fail: rtw_skb_free(skb);