mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
21fdf0a1c1
commit
18460672e0
1 changed files with 3 additions and 0 deletions
|
|
@ -241,6 +241,9 @@ ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb)
|
||||||
skb2->dev = sdata->dev;
|
skb2->dev = sdata->dev;
|
||||||
|
|
||||||
ieee802154_deliver_skb(skb2);
|
ieee802154_deliver_skb(skb2);
|
||||||
|
|
||||||
|
sdata->dev->stats.rx_packets++;
|
||||||
|
sdata->dev->stats.rx_bytes += skb->len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue