projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b8e19b
)
mac802154: add monitor listener to TX datapath
author
[email protected]
<
[email protected]
>
Mon, 25 Jun 2012 23:24:54 +0000
(23:24 +0000)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/mac802154/tx.c
patch
|
blob
|
history
diff --git
a/net/mac802154/tx.c
b/net/mac802154/tx.c
index 8781d8f904d94940880ba90e1fd247c33b4b1aa2..86891153dcba9c37dc62760eb62ee294dc413f1b 100644
(file)
--- 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,
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);