/* Stops the radio if no other PAL is making use of it.  */
void uwb_radio_stop(struct uwb_pal *pal)
/* Stops the radio if no other PAL is making use of it.  */
void uwb_radio_stop(struct uwb_pal *pal)
{
	struct uwb_rc *rc = pal->rc;
	mutex_lock(&rc->uwb_dev.mutex);
	if (pal->channel) {
		rc->active_pals--;
		uwb_radio_change_channel(rc, uwb_radio_select_channel(rc));
		pal->channel = 0;
	}
	mutex_unlock(&rc->uwb_dev.mutex);
}