/* All internal radio manager state is reset to values corresponding to a reset radio controller.  */
void uwb_radio_reset_state(struct uwb_rc *rc)
/* All internal radio manager state is reset to values corresponding to a reset radio controller.  */
void uwb_radio_reset_state(struct uwb_rc *rc)
{
	struct uwb_pal *pal;
	mutex_lock(&rc->uwb_dev.mutex);
	list_for_each_entry(pal, &rc->pals, node) {
		if (pal->channel) {
			pal->channel = -1;
			if (pal->channel_changed)
				pal->channel_changed(pal, -1);
		}
	}
	rc->beaconing = -1;
	rc->scanning = -1;
	mutex_unlock(&rc->uwb_dev.mutex);
}