summaryrefslogtreecommitdiffstats
path: root/net/mac802154/ieee802154_i.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-28 18:21:26 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-10-28 23:19:08 +0100
commite363eca386d0c28d8c6c4f176e1fa48b09a75315 (patch)
tree0e65a12c2987d3ef6f68d240288b1d5dfc764eab /net/mac802154/ieee802154_i.h
parentmac802154: rename running to started (diff)
downloadlinux-e363eca386d0c28d8c6c4f176e1fa48b09a75315.tar.xz
linux-e363eca386d0c28d8c6c4f176e1fa48b09a75315.zip
mac802154: move local started handling
This patch removes the current handling of started boolean. This is actually dead code, because mac802154_netdev_register can't never be called before ieee802154_register_hw. This means that local->started is always be true when mac802154_netdev_register is called. Instead we using this now like mac80211 to indicate that an instance of sdata is running. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/ieee802154_i.h')
-rw-r--r--net/mac802154/ieee802154_i.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/mac802154/ieee802154_i.h b/net/mac802154/ieee802154_i.h
index f52afd4ced92..bf0b5f613c36 100644
--- a/net/mac802154/ieee802154_i.h
+++ b/net/mac802154/ieee802154_i.h
@@ -50,19 +50,12 @@ struct ieee802154_local {
*/
struct workqueue_struct *workqueue;
- /* SoftMAC device is registered and running. One can add subinterfaces.
- * This flag should be modified under slaves_mtx and RTNL, so you can
- * read them using any of protection methods.
- */
bool started;
struct tasklet_struct tasklet;
struct sk_buff_head skb_queue;
};
-#define MAC802154_DEVICE_STOPPED 0x00
-#define MAC802154_DEVICE_RUN 0x01
-
enum {
IEEE802154_RX_MSG = 1,
};