aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154/mac802154.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac802154/mac802154.h')
-rw-r--r--net/mac802154/mac802154.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h
index 4f2d97506c6a..d53b86c75d53 100644
--- a/net/mac802154/mac802154.h
+++ b/net/mac802154/mac802154.h
@@ -58,6 +58,34 @@ struct mac802154_priv {
58#define MAC802154_DEVICE_STOPPED 0x00 58#define MAC802154_DEVICE_STOPPED 0x00
59#define MAC802154_DEVICE_RUN 0x01 59#define MAC802154_DEVICE_RUN 0x01
60 60
61/* Slave interface definition.
62 *
63 * Slaves represent typical network interfaces available from userspace.
64 * Each ieee802154 device/transceiver may have several slaves and able
65 * to be associated with several networks at the same time.
66 */
67struct mac802154_sub_if_data {
68 struct list_head list; /* the ieee802154_priv->slaves list */
69
70 struct mac802154_priv *hw;
71 struct net_device *dev;
72
73 int type;
74
75 spinlock_t mib_lock;
76
77 __le16 pan_id;
78 __le16 short_addr;
79
80 u8 chan;
81 u8 page;
82
83 /* MAC BSN field */
84 u8 bsn;
85 /* MAC DSN field */
86 u8 dsn;
87};
88
61#define mac802154_to_priv(_hw) container_of(_hw, struct mac802154_priv, hw) 89#define mac802154_to_priv(_hw) container_of(_hw, struct mac802154_priv, hw)
62 90
63#define MAC802154_MAX_XMIT_ATTEMPTS 3 91#define MAC802154_MAX_XMIT_ATTEMPTS 3