/* If the radio is not already active, aa suitable channel is selected and beacons are started.  */
int uwb_radio_start(struct uwb_pal *pal)
/* If the radio is not already active, aa suitable channel is selected and beacons are started.  */
int uwb_radio_start(struct uwb_pal *pal)
{
	struct uwb_rc *rc = pal->rc;
	int ret = 0;
	mutex_lock(&rc->uwb_dev.mutex);
	if (!pal->channel) {
		pal->channel = -1;
		rc->active_pals++;
		ret = uwb_radio_change_channel(rc, uwb_radio_select_channel(rc));
	}
	mutex_unlock(&rc->uwb_dev.mutex);
	return ret;
}