* 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;
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;
}
rtnl_lock();
mutex_lock(&local->iflist_mtx);
- local->running = MAC802154_DEVICE_RUN;
+ local->started = MAC802154_DEVICE_RUN;
mutex_unlock(&local->iflist_mtx);
rtnl_unlock();
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) {