/* Returns: Current state of the device according to its driver.  */
enum wimax_st wimax_state_get(struct wimax_dev *wimax_dev)
/* Returns: Current state of the device according to its driver.  */
enum wimax_st wimax_state_get(struct wimax_dev *wimax_dev)
{
	enum wimax_st state;
	mutex_lock(&wimax_dev->mutex);
	state = wimax_dev->state;
	mutex_unlock(&wimax_dev->mutex);
	return state;
}