Skip to content

Commit

Permalink
Fix t6x#64
Browse files Browse the repository at this point in the history
Think now will work
  • Loading branch information
root authored and root committed Aug 13, 2016
1 parent e97f321 commit c9cbf12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/argsparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int process_arguments(int argc, char **argv)
set_dh_small(1);
break;
case 'n':
set_timeout_is_nack(1); //when use this arg, you enable the function, not disable
set_timeout_is_nack(0);
break;
case 'f':
set_fixed_channel(1);
Expand Down
4 changes: 2 additions & 2 deletions src/exchange.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ enum wps_result do_wps_exchange()
}

/* Check NACK reason code for */
if ((get_fake_nack_reason() >= 0) && (get_nack_reason() == get_fake_nack_reason()) && (!get_timeout_is_nack()))
if ((get_fake_nack_reason() >= 0) && (get_nack_reason() == get_fake_nack_reason()) && (get_timeout_is_nack()))
{
ret_val = FAKE_NACK;
} else {
Expand All @@ -255,7 +255,7 @@ enum wps_result do_wps_exchange()
set_timeout_is_nack(0);

/* bug fix made by KokoSoft */
ret_val = ((last_msg == M3) && (get_key_status() == KEY2_WIP)) ? FAKE_NACK : KEY_REJECTED;
ret_val = ((last_msg == M3) && (get_key_status() == KEY2_WIP) && (get_timeout_is_nack())) ? FAKE_NACK : KEY_REJECTED;

This comment has been minimized.

Copy link
@vk496

vk496 Aug 31, 2016

Owner

@wifislax-ng Este es el fix para el argumento -n (Los FAKE NACK)

}
else
{
Expand Down

0 comments on commit c9cbf12

Please sign in to comment.