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>
This commit is contained in:
Alexander Aring
2014-10-28 18:21:26 +01:00
committed by Marcel Holtmann
parent 5d65cae4bf
commit e363eca386
3 changed files with 4 additions and 26 deletions

View File

@@ -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,