diff options
| author | iabdalkader <[email protected]> | 2022-02-25 05:54:41 +0200 |
|---|---|---|
| committer | iabdalkader <[email protected]> | 2022-02-25 18:42:23 +0200 |
| commit | 8eeda60bd0e81fb3fe7211014ab672b23dc847a3 (patch) | |
| tree | 2ca3317f6062f1b322f75f9c0230e5a581b6aa64 /src | |
| parent | fa895ed3dc46d5aa5e11b19ff07beb6fcfc62655 (diff) | |
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..
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/msc/msc_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c index e09a2b11a..0c18b0ced 100644 --- a/src/class/msc/msc_device.c +++ b/src/class/msc/msc_device.c @@ -753,6 +753,7 @@ static int32_t proc_builtin_scsi(uint8_t lun, uint8_t const scsi_cmd[16], uint8_ .is_removable = 1, .version = 2, .response_data_format = 2, + .additional_length = sizeof(scsi_inquiry_resp_t) - 5, }; // vendor_id, product_id, product_rev is space padded string |
