summaryrefslogtreecommitdiffstats
path: root/src/dfu.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-06-26 16:26:02 +0200
committerGravatar Nikias Bassen2016-06-26 16:26:02 +0200
commit86974cabea7921046aa0eb27a3f3875b4f78d7ff (patch)
treedee658e25a6f78077694d40cf3e7bb23ebe53c15 /src/dfu.c
parentcf1e49a9fd86ae6e1c6855824dac068b417f486c (diff)
downloadidevicerestore-86974cabea7921046aa0eb27a3f3875b4f78d7ff.tar.gz
idevicerestore-86974cabea7921046aa0eb27a3f3875b4f78d7ff.tar.bz2
dfu: Remove unnecessary device resets and ZLP packets
These caused DFU restores on OSX to fail. ZLP packets are handled in libirecovery.
Diffstat (limited to 'src/dfu.c')
-rw-r--r--src/dfu.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/dfu.c b/src/dfu.c
index 3071b16..993692d 100644
--- a/src/dfu.c
+++ b/src/dfu.c
@@ -146,14 +146,6 @@ int dfu_send_buffer(struct idevicerestore_client_t* client, unsigned char* buffe
return -1;
}
- err = irecv_reset(client->dfu->client);
- if (err != IRECV_E_SUCCESS) {
- error("ERROR: Unable to reset device\n");
- irecv_close(client->dfu->client);
- client->dfu->client = NULL;
- return -1;
- }
-
return 0;
}
@@ -356,16 +348,6 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide
return -1;
}
- irecv_usb_control_transfer(client->dfu->client, 0x21, 1, 0, 0, 0, 0, 5000);
-
- dfu_error = irecv_reset(client->dfu->client);
- if (dfu_error != IRECV_E_SUCCESS) {
- error("ERROR: Unable to reset device\n");
- irecv_close(client->dfu->client);
- client->dfu->client = NULL;
- return -1;
- }
-
if (client->build_major > 8) {
/* reconnect */
dfu_client_free(client);
@@ -424,16 +406,6 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide
client->dfu->client = NULL;
return -1;
}
-
- irecv_usb_control_transfer(client->dfu->client, 0x21, 1, 0, 0, 0, 0, 5000);
-
- dfu_error = irecv_reset(client->dfu->client);
- if (dfu_error != IRECV_E_SUCCESS) {
- error("ERROR: Unable to reset device\n");
- irecv_close(client->dfu->client);
- client->dfu->client = NULL;
- return -1;
- }
}
dfu_client_free(client);