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>
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c
index 8781d8f9..8689115 100644
--- a/net/mac802154/tx.c
+++ b/net/mac802154/tx.c
@@ -87,6 +87,8 @@
WARN_ON(1);
return NETDEV_TX_OK;
+ mac802154_monitors_rx(mac802154_to_priv(&priv->hw), skb);
+
if (!(priv->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
u16 crc = crc_ccitt(0, skb->data, skb->len);
u8 *data = skb_put(skb, 2);