diff --git a/src/pixiewps.c b/src/pixiewps.c index 11c8c8b..866afa9 100644 --- a/src/pixiewps.c +++ b/src/pixiewps.c @@ -952,8 +952,8 @@ usage_err: if (is_mode_selected(RTL819x)) { /* Ignore --start and --end otherwise */ - wps->start = t_start.tv_sec + SEC_PER_DAY; /* Extra 1 day */ - wps->end = t_start.tv_sec - MODE3_DAYS * SEC_PER_DAY; + wps->start = t_start.tv_sec + SEC_PER_DAY; + wps->end = t_start.tv_sec - SEC_PER_DAY; /* Attributes --start and --end can be switched start > end or end > start */ if (start_p != (time_t) -1) { diff --git a/src/pixiewps.h b/src/pixiewps.h index c4bd6a6..c294d74 100644 --- a/src/pixiewps.h +++ b/src/pixiewps.h @@ -27,7 +27,6 @@ /* Modes constants */ #define MODE_LEN 5 -#define MODE3_DAYS 1 #define MODE3_TRIES (60 * 10) #define SEC_PER_DAY 86400