Skip to content

Commit

Permalink
improved error message if driver doesn't respond while trying to tran…
Browse files Browse the repository at this point in the history
…smit packets
  • Loading branch information
ZerBea committed Dec 20, 2020
1 parent 5392511 commit 6478740
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hcxdumptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ if(FD_ISSET(txsocket, &txfds))
{
if(write(txsocket, packetoutptr, txsize) < 0)
{
printf("\n%s\n", errormessage);
printf("\n%s - driver doesn't respond\n", errormessage);
errorcount++;
return;
}
Expand All @@ -1299,7 +1299,7 @@ if(FD_ISSET(txsocket, &txfds))
}
else
{
printf("\n%s\n", errormessage);
printf("\n%s - driver doesn't respond\n", errormessage);
errorcount++;
return;
}
Expand Down Expand Up @@ -2284,7 +2284,7 @@ if(FD_ISSET(fd_socket, &txfds))
{
if(write(fd_socket, &packetsent, packetsentlen) < 0)
{
printf("\nfailed to retransmit packet\n");
printf("\nfailed to retransmit EAP packet - driver doesn't respond\n");
errorcount++;
return;
}
Expand All @@ -2293,7 +2293,7 @@ if(FD_ISSET(fd_socket, &txfds))
}
else
{
printf("\nfailed to retransmit packet\n");
printf("\nfailed to retransmit EAP packet - driver doesn't respond\n");
errorcount++;
return;
}
Expand Down

0 comments on commit 6478740

Please sign in to comment.