Skip to content

Commit

Permalink
mac802154: rename running to started
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
alexaring authored and holtmann committed Oct 28, 2014
1 parent 0ea3da6 commit 5d65cae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net/mac802154/ieee802154_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct ieee802154_local {
* This flag should be modified under slaves_mtx and RTNL, so you can
* read them using any of protection methods.
*/
bool running;
bool started;

struct tasklet_struct tasklet;
struct sk_buff_head skb_queue;
Expand Down
6 changes: 3 additions & 3 deletions net/mac802154/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit 5d65cae

Please sign in to comment.