/* Return the status bit for a reservations's companion DRP IE .  */
int uwb_rsv_companion_status(struct uwb_rsv *rsv)
/* Return the status bit for a reservations's companion DRP IE .  */
int uwb_rsv_companion_status(struct uwb_rsv *rsv)
{
	static const int companion_statuses[] = {
		[UWB_RSV_STATE_O_MOVE_EXPANDING]     = 0,
		[UWB_RSV_STATE_T_EXPANDING_ACCEPTED] = 1,
		[UWB_RSV_STATE_T_EXPANDING_CONFLICT] = 0,
		[UWB_RSV_STATE_T_EXPANDING_PENDING]  = 0,
		[UWB_RSV_STATE_T_EXPANDING_DENIED]   = 0,
	};
	return companion_statuses[rsv->state];
}