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/main.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/main.c')
-rw-r--r-- | net/mac802154/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c index 709dcc5f7f17..24e8ca6a669d 100644 --- a/net/mac802154/main.c +++ b/net/mac802154/main.c | |||
@@ -92,6 +92,8 @@ ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops) | |||
92 | return NULL; | 92 | return NULL; |
93 | } | 93 | } |
94 | 94 | ||
95 | phy->privid = mac802154_wpan_phy_privid; | ||
96 | |||
95 | local = wpan_phy_priv(phy); | 97 | local = wpan_phy_priv(phy); |
96 | local->phy = phy; | 98 | local->phy = phy; |
97 | local->hw.phy = local->phy; | 99 | local->hw.phy = local->phy; |