diff options
Diffstat (limited to 'net/mac802154/cfg.c')
-rw-r--r-- | net/mac802154/cfg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c index 0c69b44ba312..3f9afad1f612 100644 --- a/net/mac802154/cfg.c +++ b/net/mac802154/cfg.c | |||
@@ -28,7 +28,9 @@ ieee802154_add_iface_deprecated(struct wpan_phy *wpan_phy, | |||
28 | static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy, | 28 | static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy, |
29 | struct net_device *dev) | 29 | struct net_device *dev) |
30 | { | 30 | { |
31 | mac802154_del_iface(wpan_phy, dev); | 31 | struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); |
32 | |||
33 | ieee802154_if_remove(sdata); | ||
32 | } | 34 | } |
33 | 35 | ||
34 | const struct cfg802154_ops mac802154_config_ops = { | 36 | const struct cfg802154_ops mac802154_config_ops = { |