@@ -42,7 +42,7 @@ struct wpan_phy {
int idx;
struct net_device *(*add_iface)(struct wpan_phy *phy,
- const char *name);
+ const char *name, int type);
void (*del_iface)(struct wpan_phy *phy, struct net_device *dev);
char priv[0] __attribute__((__aligned__(NETDEV_ALIGN)));
@@ -179,6 +179,7 @@ static int ieee802154_add_iface(struct sk_buff *skb,
const char *devname;
int rc = -ENOBUFS;
struct net_device *dev;
+ int type = -EINVAL;
pr_debug("%s\n", __func__);
@@ -221,7 +222,7 @@ static int ieee802154_add_iface(struct sk_buff *skb,
goto nla_put_failure;
}
- dev = phy->add_iface(phy, devname);
+ dev = phy->add_iface(phy, devname, type);
if (IS_ERR(dev)) {
rc = PTR_ERR(dev);
goto nla_put_failure;
Device type argument is added to callback which creates interface. Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> --- include/net/wpan-phy.h | 2 +- net/ieee802154/nl-phy.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)