]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mac802154: add monitor listener to TX datapath
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>
Mon, 25 Jun 2012 23:24:54 +0000 (23:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 04:06:33 +0000 (21:06 -0700)
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>
net/mac802154/tx.c

index 8781d8f904d94940880ba90e1fd247c33b4b1aa2..86891153dcba9c37dc62760eb62ee294dc413f1b 100644 (file)
@@ -87,6 +87,8 @@ netdev_tx_t mac802154_tx(struct mac802154_priv *priv, struct sk_buff *skb,
                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);