jcs
/wifi_da
/amendments
/5
scsi: Put sub-command in cdb[1]
jcs made amendment 5 11 months ago
--- scsi.c Thu Sep 21 13:41:22 2023
+++ scsi.c Fri Sep 22 09:36:09 2023
@@ -113,7 +113,7 @@ scsi_wifi_scan(short scsi_id)
memset(cdb, 0, sizeof(cdb));
cdb[0] = BLUESCSI_NETWORK_WIFI_CMD;
- cdb[2] = BLUESCSI_NETWORK_WIFI_CMD_SCAN;
+ cdb[1] = BLUESCSI_NETWORK_WIFI_CMD_SCAN;
cdb[4] = 0x01;
return (scsi_io(scsi_id, cdb, sizeof(cdb), SCSI_READ, 1) != -1);
@@ -126,7 +126,7 @@ scsi_wifi_scan_finished(short scsi_id)
memset(cdb, 0, sizeof(cdb));
cdb[0] = BLUESCSI_NETWORK_WIFI_CMD;
- cdb[2] = BLUESCSI_NETWORK_WIFI_CMD_COMPLETE;
+ cdb[1] = BLUESCSI_NETWORK_WIFI_CMD_COMPLETE;
cdb[4] = 0x01;
if (scsi_io(scsi_id, cdb, sizeof(cdb), SCSI_READ, 1) == -1)
@@ -147,7 +147,7 @@ scsi_wifi_scan_results(short scsi_id, struct wifi_netw
memset(cdb, 0, sizeof(cdb));
cdb[0] = BLUESCSI_NETWORK_WIFI_CMD;
- cdb[2] = BLUESCSI_NETWORK_WIFI_CMD_SCAN_RESULTS;
+ cdb[1] = BLUESCSI_NETWORK_WIFI_CMD_SCAN_RESULTS;
cdb[3] = (sizeof(scsi_data) >> 8) & 0xff;
cdb[4] = sizeof(scsi_data) & 0xff;
@@ -175,7 +175,7 @@ scsi_wifi_info(short scsi_id, struct wifi_network_entr
memset(cdb, 0, sizeof(cdb));
cdb[0] = BLUESCSI_NETWORK_WIFI_CMD;
- cdb[2] = BLUESCSI_NETWORK_WIFI_CMD_INFO;
+ cdb[1] = BLUESCSI_NETWORK_WIFI_CMD_INFO;
size = sizeof(struct wifi_network_entry) + 2;
cdb[3] = (size >> 8) & 0xff;
@@ -200,7 +200,7 @@ scsi_wifi_join(short scsi_id, struct wifi_join_request
memset(cdb, 0, sizeof(cdb));
cdb[0] = BLUESCSI_NETWORK_WIFI_CMD;
- cdb[2] = BLUESCSI_NETWORK_WIFI_CMD_JOIN;
+ cdb[1] = BLUESCSI_NETWORK_WIFI_CMD_JOIN;
size = sizeof(struct wifi_join_request);
cdb[3] = (size >> 8) & 0xff;