/* Returns 0 on success; -ve on an error.  */
int uwb_rc_ie_setup(struct uwb_rc *uwb_rc)
/* Returns 0 on success; -ve on an error.  */
int uwb_rc_ie_setup(struct uwb_rc *uwb_rc)
{
	struct uwb_rc_evt_get_ie *ie_info = NULL;
	int capacity;
	capacity = uwb_rc_get_ie(uwb_rc, &ie_info);
	if (capacity < 0)
		return capacity;
	mutex_lock(&uwb_rc->ies_mutex);
	uwb_rc->ies = (struct uwb_rc_cmd_set_ie *)ie_info;
	uwb_rc->ies->rccb.bCommandType = UWB_RC_CET_GENERAL;
	uwb_rc->ies->rccb.wCommand = cpu_to_le16(UWB_RC_CMD_SET_IE);
	uwb_rc->ies_capacity = capacity;
	mutex_unlock(&uwb_rc->ies_mutex);
	return 0;
}