Skip to content

Commit

Permalink
network: add sense information to check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed Sep 16, 2024
1 parent 26ee114 commit bd366cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/SCSI2SD/src/firmware/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,17 @@ int scsiNetworkCommand()
// return wi-fi scan results
if (!platform_network_wifi_scan_finished())
{
scsiDev.target->sense.code = ILLEGAL_REQUEST;
scsiDev.target->sense.asc = INVALID_FIELD_IN_CDB;
scsiDev.status = CHECK_CONDITION;
scsiDev.phase = STATUS;
break;
}

if (unlikely(size < 2))
{
scsiDev.target->sense.code = ILLEGAL_REQUEST;
scsiDev.target->sense.asc = INVALID_FIELD_IN_CDB;
scsiDev.status = CHECK_CONDITION;
scsiDev.phase = STATUS;
break;
Expand Down

0 comments on commit bd366cf

Please sign in to comment.