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>
This commit is contained in:

committed by
Marcel Holtmann

parent
2789e6297f
commit
6322d50d87
@@ -96,6 +96,9 @@ struct ieee802154_sub_if_data {
|
||||
|
||||
#define MAC802154_CHAN_NONE 0xff /* No channel is assigned */
|
||||
|
||||
/* utility functions/constants */
|
||||
extern const void *const mac802154_wpan_phy_privid; /* for wpan_phy privid */
|
||||
|
||||
static inline struct ieee802154_local *
|
||||
hw_to_local(struct ieee802154_hw *hw)
|
||||
{
|
||||
|
Reference in New Issue
Block a user