diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-05 20:51:14 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-05 21:53:03 +0100 |
commit | b210b18747cb511bb71f6a49c97e8d38f639b435 (patch) | |
tree | 644fad3528a37d44a6e85e6bdbea3ced09c2ac8b /net/mac802154/cfg.c | |
parent | ieee802154: remove nl802154 unused functions (diff) | |
download | linux-b210b18747cb511bb71f6a49c97e8d38f639b435.tar.xz linux-b210b18747cb511bb71f6a49c97e8d38f639b435.zip |
mac802154: move interface del handling in iface
This patch moves and rename the mac802154_del_iface function into
iface.c and rename the function to ieee802154_if_remove which is a similar
naming convention like mac80211.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
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, static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy, struct net_device *dev) { - mac802154_del_iface(wpan_phy, dev); + struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); + + ieee802154_if_remove(sdata); } const struct cfg802154_ops mac802154_config_ops = { |