diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-05 20:51:20 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-05 21:53:04 +0100 |
commit | 7c118c1a866454cf2091fd84404d0915a27b0eef (patch) | |
tree | 1fb04fdec86c490a8f7a30e07440c1cbc16c902f /include/net/mac802154.h | |
parent | e4962a14435e15c0c070e8aa1b010454c9292c02 (diff) | |
download | lwn-7c118c1a866454cf2091fd84404d0915a27b0eef.tar.gz lwn-7c118c1a866454cf2091fd84404d0915a27b0eef.zip |
mac802154: add ieee802154_vif struct
This patch adds an ieee802154_vif similar like the ieee80211_vif which
holds the interface type and maybe further more attributes like the
ieee80211_vif structure.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Cc: Varka Bhadram <varkabhadram@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/mac802154.h')
-rw-r--r-- | include/net/mac802154.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/mac802154.h b/include/net/mac802154.h index 8b0c26bc0762..10711a6409f4 100644 --- a/include/net/mac802154.h +++ b/include/net/mac802154.h @@ -52,6 +52,13 @@ struct ieee802154_hw_addr_filt { u8 pan_coord; }; +struct ieee802154_vif { + int type; + + /* must be last */ + u8 drv_priv[0] __aligned(sizeof(void *)); +}; + struct ieee802154_hw { /* filled by the driver */ int extra_tx_headroom; @@ -62,6 +69,7 @@ struct ieee802154_hw { struct ieee802154_hw_addr_filt hw_filt; void *priv; struct wpan_phy *phy; + size_t vif_data_size; }; /* Checksum is in hardware and is omitted from a packet |