aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>2012-06-25 19:24:54 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-27 00:06:33 -0400
commit72fd5a8b75fb9962295a8c1338e13a4b1536714a (patch)
tree825c54a25b4662d885515961abe54c5fa953759c /net/mac802154
parent7b8e19b67c1b171a04f6bd2f973d0b38cb496bf6 (diff)
mac802154: add monitor listener to TX datapath
Add monitor receive callback to the TX datapath to catch all the data sent to transceivers. Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/tx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c
index 8781d8f904d9..86891153dcba 100644
--- a/net/mac802154/tx.c
+++ b/net/mac802154/tx.c
@@ -87,6 +87,8 @@ netdev_tx_t mac802154_tx(struct mac802154_priv *priv, struct sk_buff *skb,
87 WARN_ON(1); 87 WARN_ON(1);
88 return NETDEV_TX_OK; 88 return NETDEV_TX_OK;
89 89
90 mac802154_monitors_rx(mac802154_to_priv(&priv->hw), skb);
91
90 if (!(priv->hw.flags & IEEE802154_HW_OMIT_CKSUM)) { 92 if (!(priv->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
91 u16 crc = crc_ccitt(0, skb->data, skb->len); 93 u16 crc = crc_ccitt(0, skb->data, skb->len);
92 u8 *data = skb_put(skb, 2); 94 u8 *data = skb_put(skb, 2);