diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-28 18:21:26 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-28 23:19:08 +0100 |
commit | e363eca386d0c28d8c6c4f176e1fa48b09a75315 (patch) | |
tree | 0e65a12c2987d3ef6f68d240288b1d5dfc764eab /net/mac802154/driver-ops.h | |
parent | 5d65cae4bf6ffe29bba90f621e947922c5fb80db (diff) | |
download | linux-e363eca386d0c28d8c6c4f176e1fa48b09a75315.tar.gz linux-e363eca386d0c28d8c6c4f176e1fa48b09a75315.tar.bz2 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/driver-ops.h')
-rw-r--r-- | net/mac802154/driver-ops.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac802154/driver-ops.h b/net/mac802154/driver-ops.h index bf7980bbceff..bb3ee03c1669 100644 --- a/net/mac802154/driver-ops.h +++ b/net/mac802154/driver-ops.h @@ -29,6 +29,8 @@ static inline int drv_start(struct ieee802154_local *local) { might_sleep(); + local->started = true; + return local->ops->start(&local->hw); } @@ -37,6 +39,8 @@ static inline void drv_stop(struct ieee802154_local *local) might_sleep(); local->ops->stop(&local->hw); + + local->started = false; } static inline int drv_set_channel(struct ieee802154_local *local, |