diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-11 21:36:51 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-11 23:10:36 -0500 |
commit | 6322d50d879c7ad150164cedc64015a7817f7b28 (patch) | |
tree | 13e6bc3e863a1b8aa6c873b60b3209cdc34f0abd /net/mac802154/util.c | |
parent | 2789e6297f8fd4943b8d63599a75c3e1cf4f8517 (diff) |
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 'net/mac802154/util.c')
-rw-r--r-- | net/mac802154/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac802154/util.c b/net/mac802154/util.c index 117e4eff4ca8..9a04e4a8e50f 100644 --- a/net/mac802154/util.c +++ b/net/mac802154/util.c | |||
@@ -15,6 +15,9 @@ | |||
15 | 15 | ||
16 | #include "ieee802154_i.h" | 16 | #include "ieee802154_i.h" |
17 | 17 | ||
18 | /* privid for wpan_phys to determine whether they belong to us or not */ | ||
19 | const void *const mac802154_wpan_phy_privid = &mac802154_wpan_phy_privid; | ||
20 | |||
18 | void ieee802154_wake_queue(struct ieee802154_hw *hw) | 21 | void ieee802154_wake_queue(struct ieee802154_hw *hw) |
19 | { | 22 | { |
20 | struct ieee802154_local *local = hw_to_local(hw); | 23 | struct ieee802154_local *local = hw_to_local(hw); |