summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-12 03:36:51 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-11-12 05:10:36 +0100
commit6322d50d879c7ad150164cedc64015a7817f7b28 (patch)
tree13e6bc3e863a1b8aa6c873b60b3209cdc34f0abd /include/net
parent2789e6297f8fd4943b8d63599a75c3e1cf4f8517 (diff)
downloadlinux-6322d50d879c7ad150164cedc64015a7817f7b28.tar.gz
linux-6322d50d879c7ad150164cedc64015a7817f7b28.tar.bz2
linux-6322d50d879c7ad150164cedc64015a7817f7b28.zip
mac802154: add wpan_phy priv id
This patch adds an unique id for an wpan_phy. This behaviour is mostly grabbed from wireless stack. This is needed for upcomming patches which identify the wpan netdev while NETDEV_CHANGENAME in netdev notify function. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/cfg802154.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/cfg802154.h b/include/net/cfg802154.h
index e5570e011116..369515231302 100644
--- a/include/net/cfg802154.h
+++ b/include/net/cfg802154.h
@@ -42,6 +42,14 @@ struct cfg802154_ops {
struct wpan_phy {
struct mutex pib_lock;
+ /* If multiple wpan_phys are registered and you're handed e.g.
+ * a regular netdev with assigned ieee802154_ptr, you won't
+ * know whether it points to a wpan_phy your driver has registered
+ * or not. Assign this to something global to your driver to
+ * help determine whether you own this wpan_phy or not.
+ */
+ const void *privid;
+
/*
* This is a PIB according to 802.15.4-2011.
* We do not provide timing-related variables, as they