summaryrefslogtreecommitdiff
path: root/net/mac802154/iface.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-28 18:21:29 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-10-28 23:19:08 +0100
commit12439a53560097bc8e42cf14967717d14588dddd (patch)
tree34a1bf967900cb2ca32e32eb4a9eb07a422ad079 /net/mac802154/iface.c
parent33d4189f51f0dbb522a4d81aafc7edb2e048c570 (diff)
mac802154: remove channel attributes from sdata
These channel attributes was part of "channel context switch while xmit" which was removed by commit dc67c6b30f36d57b70b70547a30e7a8432540c6f ("mac802154: tx: remove xmit channel context switch"). This patch removes these unnecessary variables and use the current_page and current_channel by wpan_phy struct now. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/iface.c')
-rw-r--r--net/mac802154/iface.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index 2423aa7671df..1c0274ed9370 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -417,8 +417,6 @@ void mac802154_wpan_setup(struct net_device *dev)
sdata = IEEE802154_DEV_TO_SUB_IF(dev);
sdata->type = IEEE802154_DEV_WPAN;
- sdata->chan = MAC802154_CHAN_NONE;
-
spin_lock_init(&sdata->mib_lock);
mutex_init(&sdata->sec_mtx);
@@ -454,6 +452,4 @@ void mac802154_monitor_setup(struct net_device *dev)
sdata = IEEE802154_DEV_TO_SUB_IF(dev);
sdata->type = IEEE802154_DEV_MONITOR;
-
- sdata->chan = MAC802154_CHAN_NONE; /* not initialized */
}