summaryrefslogtreecommitdiffstats
path: root/net/mac802154/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac802154/cfg.c')
-rw-r--r--net/mac802154/cfg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c
index 3f9afad1f612..0a08f66512b3 100644
--- a/net/mac802154/cfg.c
+++ b/net/mac802154/cfg.c
@@ -22,7 +22,9 @@ static struct net_device *
ieee802154_add_iface_deprecated(struct wpan_phy *wpan_phy,
const char *name, int type)
{
- return mac802154_add_iface(wpan_phy, name, type);
+ struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
+
+ return ieee802154_if_add(local, name, NULL, type);
}
static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy,