diff options
author | alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> | 2012-05-15 16:50:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-16 15:17:08 -0400 |
commit | 0606069d9ef538687957d41ed6387d665af7a643 (patch) | |
tree | b0e54cbdddc436a4b8fd48db676c0ab2efd55d6f /net/mac802154/mac802154.h | |
parent | 62610ad21870a8cf842d4a48f07c3a964e1d2622 (diff) |
mac802154: monitor device support
Support for monitor device intended to capture all the network activity.
This interface could be used by networks sniffers and is already
supported by WireShark. That's a good test point to check that basic
MAC support works.
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154/mac802154.h')
-rw-r--r-- | net/mac802154/mac802154.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h index 622752622c87..789d9c948aec 100644 --- a/net/mac802154/mac802154.h +++ b/net/mac802154/mac802154.h | |||
@@ -90,11 +90,16 @@ struct mac802154_sub_if_data { | |||
90 | 90 | ||
91 | #define MAC802154_MAX_XMIT_ATTEMPTS 3 | 91 | #define MAC802154_MAX_XMIT_ATTEMPTS 3 |
92 | 92 | ||
93 | #define MAC802154_CHAN_NONE (~(u8)0) /* No channel is assigned */ | ||
94 | |||
93 | extern struct ieee802154_reduced_mlme_ops mac802154_mlme_reduced; | 95 | extern struct ieee802154_reduced_mlme_ops mac802154_mlme_reduced; |
94 | 96 | ||
95 | int mac802154_slave_open(struct net_device *dev); | 97 | int mac802154_slave_open(struct net_device *dev); |
96 | int mac802154_slave_close(struct net_device *dev); | 98 | int mac802154_slave_close(struct net_device *dev); |
97 | 99 | ||
100 | void mac802154_monitors_rx(struct mac802154_priv *priv, struct sk_buff *skb); | ||
101 | void mac802154_monitor_setup(struct net_device *dev); | ||
102 | |||
98 | netdev_tx_t mac802154_tx(struct mac802154_priv *priv, struct sk_buff *skb, | 103 | netdev_tx_t mac802154_tx(struct mac802154_priv *priv, struct sk_buff *skb, |
99 | u8 page, u8 chan); | 104 | u8 page, u8 chan); |
100 | 105 | ||