/* Decodes the result of scsi MODE SENSE 6 command.  */
static void uhi_msc_scsi_mode_sense6_done(bool b_cbw_succes)
/* Decodes the result of scsi MODE SENSE 6 command.  */
static void uhi_msc_scsi_mode_sense6_done(bool b_cbw_succes)
{
	if ((!b_cbw_succes) || (uhi_msc_csw.bCSWStatus != USB_CSW_STATUS_PASS)
			|| (uhi_msc_csw.dCSWDataResidue < 4)) {
		uhi_msc_lun_sel->b_write_protected = false;
		uhi_msc_scsi_callback(true);
		return;
	}
	uhi_msc_lun_sel->b_write_protected =
			(uhi_msc_sense6.header.device_specific_parameter
			& SCSI_MS_SBC_WP);
	uhi_msc_scsi_callback(true);
}