mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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:
committed by
Marcel Holtmann
parent
5d65cae4bf
commit
e363eca386
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user