소스 검색

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..
iabdalkader 4 년 전
부모
커밋
8eeda60bd0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/class/msc/msc_device.c

+ 1 - 0
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,
           .is_removable         = 1,
           .version              = 2,
           .version              = 2,
           .response_data_format = 2,
           .response_data_format = 2,
+          .additional_length    = sizeof(scsi_inquiry_resp_t) - 5,
       };
       };
 
 
       // vendor_id, product_id, product_rev is space padded string
       // vendor_id, product_id, product_rev is space padded string