diff options
Diffstat (limited to 'net/mac802154/cfg.c')
| -rw-r--r-- | net/mac802154/cfg.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c index 5d9f68c75e5f..70be9c799f8a 100644 --- a/net/mac802154/cfg.c +++ b/net/mac802154/cfg.c | |||
| @@ -22,13 +22,14 @@ | |||
| 22 | 22 | ||
| 23 | static struct net_device * | 23 | static struct net_device * |
| 24 | ieee802154_add_iface_deprecated(struct wpan_phy *wpan_phy, | 24 | ieee802154_add_iface_deprecated(struct wpan_phy *wpan_phy, |
| 25 | const char *name, int type) | 25 | const char *name, |
| 26 | unsigned char name_assign_type, int type) | ||
| 26 | { | 27 | { |
| 27 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); | 28 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); |
| 28 | struct net_device *dev; | 29 | struct net_device *dev; |
| 29 | 30 | ||
| 30 | rtnl_lock(); | 31 | rtnl_lock(); |
| 31 | dev = ieee802154_if_add(local, name, type, | 32 | dev = ieee802154_if_add(local, name, name_assign_type, type, |
| 32 | cpu_to_le64(0x0000000000000000ULL)); | 33 | cpu_to_le64(0x0000000000000000ULL)); |
| 33 | rtnl_unlock(); | 34 | rtnl_unlock(); |
| 34 | 35 | ||
| @@ -45,12 +46,14 @@ static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy, | |||
| 45 | 46 | ||
| 46 | static int | 47 | static int |
| 47 | ieee802154_add_iface(struct wpan_phy *phy, const char *name, | 48 | ieee802154_add_iface(struct wpan_phy *phy, const char *name, |
| 49 | unsigned char name_assign_type, | ||
| 48 | enum nl802154_iftype type, __le64 extended_addr) | 50 | enum nl802154_iftype type, __le64 extended_addr) |
| 49 | { | 51 | { |
| 50 | struct ieee802154_local *local = wpan_phy_priv(phy); | 52 | struct ieee802154_local *local = wpan_phy_priv(phy); |
| 51 | struct net_device *err; | 53 | struct net_device *err; |
| 52 | 54 | ||
| 53 | err = ieee802154_if_add(local, name, type, extended_addr); | 55 | err = ieee802154_if_add(local, name, name_assign_type, type, |
| 56 | extended_addr); | ||
| 54 | return PTR_ERR_OR_ZERO(err); | 57 | return PTR_ERR_OR_ZERO(err); |
| 55 | } | 58 | } |
| 56 | 59 | ||
