summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/core.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-09 08:36:50 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-11-09 19:50:28 +0100
commitfcf39e6e88e9492f6688ec8ba4e1be622b904232 (patch)
treeae87d1f093f7b8baa69cc438af36d14ba1866abe /net/ieee802154/core.h
parent190ac1ca33442dc25a172ece0f34746a7e1514f3 (diff)
downloadop-kernel-dev-fcf39e6e88e9492f6688ec8ba4e1be622b904232.zip
op-kernel-dev-fcf39e6e88e9492f6688ec8ba4e1be622b904232.tar.gz
ieee802154: add wpan_dev_list
This patch adds a wpan_dev_list list into cfg802154_registered_device struct. Also adding new wpan_dev into this list while cfg802154_netdev_notifier_call. This behaviour is mostly grab from wireless core.c implementation and is needed for preparing nl802154 framework. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/core.h')
-rw-r--r--net/ieee802154/core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ieee802154/core.h b/net/ieee802154/core.h
index 38887cb2..e708d9d 100644
--- a/net/ieee802154/core.h
+++ b/net/ieee802154/core.h
@@ -10,6 +10,17 @@ struct cfg802154_registered_device {
/* wpan_phy index, internal only */
int wpan_phy_idx;
+ /* also protected by devlist_mtx */
+ int opencount;
+ wait_queue_head_t dev_wait;
+
+ /* protected by RTNL only */
+ int num_running_ifaces;
+
+ /* associated wpan interfaces, protected by rtnl or RCU */
+ struct list_head wpan_dev_list;
+ int devlist_generation, wpan_dev_id;
+
/* must be last because of the way we do wpan_phy_priv(),
* and it should at least be aligned to NETDEV_ALIGN
*/
OpenPOWER on IntegriCloud