/* This one is used for scanning and other jobs not to be interfered
* with serial driver.
*/
- struct workqueue_struct *dev_workqueue;
+ struct workqueue_struct *workqueue;
/* SoftMAC device is registered and running. One can add subinterfaces.
* This flag should be modified under slaves_mtx and RTNL, so you can
local->phy->set_frame_retries = mac802154_set_frame_retries;
}
- local->dev_workqueue =
+ local->workqueue =
create_singlethread_workqueue(wpan_phy_name(local->phy));
- if (!local->dev_workqueue) {
+ if (!local->workqueue) {
rc = -ENOMEM;
goto out;
}
return 0;
out_wq:
- destroy_workqueue(local->dev_workqueue);
+ destroy_workqueue(local->workqueue);
out:
return rc;
}
struct ieee802154_local *local = hw_to_local(hw);
struct ieee802154_sub_if_data *sdata, *next;
- flush_workqueue(local->dev_workqueue);
- destroy_workqueue(local->dev_workqueue);
+ flush_workqueue(local->workqueue);
+ destroy_workqueue(local->workqueue);
rtnl_lock();
INIT_WORK(&work->work, hw_addr_notify);
work->dev = dev;
work->changed = changed;
- queue_work(sdata->local->dev_workqueue, &work->work);
+ queue_work(sdata->local->workqueue, &work->work);
}
void mac802154_dev_set_short_addr(struct net_device *dev, __le16 val)
INIT_WORK(&work->work, phy_chan_notify);
work->dev = dev;
- queue_work(sdata->local->dev_workqueue, &work->work);
+ queue_work(sdata->local->workqueue, &work->work);
} else {
mutex_unlock(&sdata->local->phy->pib_lock);
}
work->hw = hw;
work->lqi = lqi;
- queue_work(local->dev_workqueue, &work->work);
+ queue_work(local->workqueue, &work->work);
}
EXPORT_SYMBOL(ieee802154_rx_irqsafe);
work->page = page;
work->chan = chan;
- queue_work(local->dev_workqueue, &work->work);
+ queue_work(local->workqueue, &work->work);
return NETDEV_TX_OK;