summaryrefslogtreecommitdiffstats
path: root/net/mac802154/main.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-05 20:51:14 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-11-05 21:53:03 +0100
commitb210b18747cb511bb71f6a49c97e8d38f639b435 (patch)
tree644fad3528a37d44a6e85e6bdbea3ced09c2ac8b /net/mac802154/main.c
parent9f3295b9ea8e54a6c65231d267f069edf420b64f (diff)
downloadblackbird-op-linux-b210b18747cb511bb71f6a49c97e8d38f639b435.tar.gz
blackbird-op-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/main.c')
-rw-r--r--net/mac802154/main.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c
index b34ddbf43c3d..333d33daec6e 100644
--- a/net/mac802154/main.c
+++ b/net/mac802154/main.c
@@ -59,22 +59,6 @@ mac802154_netdev_register(struct wpan_phy *phy, struct net_device *dev)
return 0;
}
-void mac802154_del_iface(struct wpan_phy *phy, struct net_device *dev)
-{
- struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev);
-
- ASSERT_RTNL();
-
- BUG_ON(sdata->local->phy != phy);
-
- mutex_lock(&sdata->local->iflist_mtx);
- list_del_rcu(&sdata->list);
- mutex_unlock(&sdata->local->iflist_mtx);
-
- synchronize_rcu();
- unregister_netdevice(sdata->dev);
-}
-
struct net_device *
mac802154_add_iface(struct wpan_phy *phy, const char *name, int type)
{
OpenPOWER on IntegriCloud