Skip to content

Commit

Permalink
mac802154: rx: add rx stats incrementation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Aring authored and Marcel Holtmann committed Oct 29, 2014
1 parent 21fdf0a commit 1846067
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac802154/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 1846067

Please sign in to comment.