struct net_device *dev;
rtnl_lock();
- dev = ieee802154_if_add(local, name, NULL, type);
+ dev = ieee802154_if_add(local, name, type);
rtnl_unlock();
return dev;
void ieee802154_if_remove(struct ieee802154_sub_if_data *sdata);
struct net_device *
ieee802154_if_add(struct ieee802154_local *local, const char *name,
- struct wpan_dev **new_wpan_dev, enum nl802154_iftype type);
+ enum nl802154_iftype type);
void ieee802154_remove_interfaces(struct ieee802154_local *local);
#endif /* __IEEE802154_I_H */
struct net_device *
ieee802154_if_add(struct ieee802154_local *local, const char *name,
- struct wpan_dev **new_wpan_dev, enum nl802154_iftype type)
+ enum nl802154_iftype type)
{
struct net_device *ndev = NULL;
struct ieee802154_sub_if_data *sdata = NULL;
list_add_tail_rcu(&sdata->list, &local->interfaces);
mutex_unlock(&local->iflist_mtx);
- if (new_wpan_dev)
- *new_wpan_dev = &sdata->wpan_dev;
-
return ndev;
err:
rtnl_lock();
- dev = ieee802154_if_add(local, "wpan%d", NULL, NL802154_IFTYPE_NODE);
+ dev = ieee802154_if_add(local, "wpan%d", NL802154_IFTYPE_NODE);
if (IS_ERR(dev)) {
rtnl_unlock();
rc = PTR_ERR(dev);