From 9f6e1b7ed3989a3043cdf0bd31bde39e0d368d79 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 95d08e5..2605af5 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -3952,6 +3952,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);