From ee2beb3494bd5faa66e5aa783b17a9c7e48cb6a4 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Wed, 13 Nov 2019 20:06:59 +0100 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 f795600..a53fb67 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -4475,6 +4475,8 @@ s32 rtw_monitor_xmit_entry(struct sk_buff *skb, struct net_device *ndev) pattrib->last_txcmdsz = pattrib->pktlen; dump_mgntframe(padapter, pmgntframe); + pxmitpriv->tx_pkts++; + pxmitpriv->tx_bytes += skb->len; fail: rtw_skb_free(skb);