summaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-29 21:34:40 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-10-29 23:07:46 +0100
commit18460672e0651705ca557c94a369003553c3f9d6 (patch)
tree74741bfab5276506480c96ccf3500818d274cdc5 /net/mac802154
parent21fdf0a1c10719f6edbb5961f5b076f5575d4bce (diff)
downloadop-kernel-dev-18460672e0651705ca557c94a369003553c3f9d6.zip
op-kernel-dev-18460672e0651705ca557c94a369003553c3f9d6.tar.gz
mac802154: rx: add rx stats incrementation
This patch adds rx stats incrementation when the monitor interface recevied a frame. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/rx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index 7669cdb..6ba2769 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -241,6 +241,9 @@ ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb)
skb2->dev = sdata->dev;
ieee802154_deliver_skb(skb2);
+
+ sdata->dev->stats.rx_packets++;
+ sdata->dev->stats.rx_bytes += skb->len;
}
}
OpenPOWER on IntegriCloud