Skip to content

Commit

Permalink
mac802154: add monitor listener to TX datapath
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alex.bluesman.smirnov@gmail.com authored and David S. Miller committed Jun 27, 2012
1 parent 7b8e19b commit 72fd5a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac802154/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 72fd5a8

Please sign in to comment.