/* Returns 0 on success; or -ve the SET-IE command to the radio controller failed.  */
int uwb_rc_ie_rm(struct uwb_rc *uwb_rc, enum uwb_ie element_id)
/* Returns 0 on success; or -ve the SET-IE command to the radio controller failed.  */
int uwb_rc_ie_rm(struct uwb_rc *uwb_rc, enum uwb_ie element_id)
{
	int result = 0;
	mutex_lock(&uwb_rc->ies_mutex);
	uwb_rc_ie_cache_rm(uwb_rc, element_id);
	if (uwb_rc->beaconing != -1)
		result = uwb_rc_set_ie(uwb_rc, uwb_rc->ies);
	mutex_unlock(&uwb_rc->ies_mutex);
	return result;
}