/* Decodes the result of scsi READ CAPACITY command Launches MODE SENSE 6 command.  */
static void uhi_msc_scsi_read_capacity_done(bool b_cbw_succes)
/* Decodes the result of scsi READ CAPACITY command Launches MODE SENSE 6 command.  */
static void uhi_msc_scsi_read_capacity_done(bool b_cbw_succes)
{
	if ((!b_cbw_succes) || (uhi_msc_csw.bCSWStatus != USB_CSW_STATUS_PASS)
			|| uhi_msc_csw.dCSWDataResidue) {
		uhi_msc_lun_sel->status = LUN_FAIL;
		uhi_msc_scsi_request_sense(uhi_msc_scsi_read_capacity_sense);
		return;
	}
	uhi_msc_lun_sel->capacity.block_len =
			be32_to_cpu(uhi_msc_capacity.block_len);
	uhi_msc_lun_sel->capacity.max_lba =
			be32_to_cpu(uhi_msc_capacity.max_lba);
	uhi_msc_scsi_mode_sense6(uhi_msc_scsi_callback);
}