Skip to content

Commit 8eeda60

Browse files
committed
Set the standard inquiry response additional length field.
* The standard inquiry response additional length field needs to be set to the length in bytes of the remaining standard inquiry data (i.e. N - 5), otherwise the kernel driver issues a warning about short inquiry response..
1 parent fa895ed commit 8eeda60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/class/msc/msc_device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ static int32_t proc_builtin_scsi(uint8_t lun, uint8_t const scsi_cmd[16], uint8_
753753
.is_removable = 1,
754754
.version = 2,
755755
.response_data_format = 2,
756+
.additional_length = sizeof(scsi_inquiry_resp_t) - 5,
756757
};
757758

758759
// vendor_id, product_id, product_rev is space padded string

0 commit comments

Comments
 (0)