aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154/main.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-28 18:21:25 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-10-28 23:19:08 +0100
commit5d65cae4bf6ffe29bba90f621e947922c5fb80db (patch)
tree598d2c5b11b62fe3873c882693347daf1ad59eea /net/mac802154/main.c
parentmac802154: rework sdata state change to running (diff)
downloadlinux-dev-5d65cae4bf6ffe29bba90f621e947922c5fb80db.tar.xz
linux-dev-5d65cae4bf6ffe29bba90f621e947922c5fb80db.zip
mac802154: rename running to started
This variable should be handled like ieee80211_local struct of mac80211. We rename this variable to started now to have the same name convention. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/main.c')
-rw-r--r--net/mac802154/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac802154/main.c b/net/mac802154/main.c
index 9fa9514b3a36..7458f71c151c 100644
--- a/net/mac802154/main.c
+++ b/net/mac802154/main.c
@@ -47,7 +47,7 @@ mac802154_netdev_register(struct wpan_phy *phy, struct net_device *dev)
SET_NETDEV_DEV(dev, &local->phy->dev);
mutex_lock(&local->iflist_mtx);
- if (!local->running) {
+ if (!local->started) {
mutex_unlock(&local->iflist_mtx);
return -ENODEV;
}
@@ -238,7 +238,7 @@ int ieee802154_register_hw(struct ieee802154_hw *hw)
rtnl_lock();
mutex_lock(&local->iflist_mtx);
- local->running = MAC802154_DEVICE_RUN;
+ local->started = MAC802154_DEVICE_RUN;
mutex_unlock(&local->iflist_mtx);
rtnl_unlock();
@@ -264,7 +264,7 @@ void ieee802154_unregister_hw(struct ieee802154_hw *hw)
rtnl_lock();
mutex_lock(&local->iflist_mtx);
- local->running = MAC802154_DEVICE_STOPPED;
+ local->started = MAC802154_DEVICE_STOPPED;
mutex_unlock(&local->iflist_mtx);
list_for_each_entry_safe(sdata, next, &local->interfaces, list) {