fragattacks/src
Jouni Malinen a09ffd5f2f Fix req_scan-deplete-timeout and update eloop API for this
Commit e2f5a9889a was supposed to prevent
new scan request from pushing out the old one. However, it did not
really do that since eloop_deplete_timeout() returned 0 both for the
case where the old timeout existed (and was sooner) and if the old
timeout did not exist. It returned 1 only for the case where an old
timeout did exist and was larger than the new requested value. That case
used to result in wpa_supplicant_req_scan() rescheduling the timeout,
but hew code in eloop_deplete_timeout() did the exact same thing and as
such, did not really change anything apart from the debug log message.

Extend the eloop_deplete_timeout() (and eloop_replenish_timeout() for
that matter since it is very similar) to return three different values
based on whether the timeout existed or not and if yes, whether it was
modified. This allows wpa_supplicant_req_scan() to schedule a new
timeout only in the case there was no old timeout.

Signed-hostap: Jouni Malinen <j@w1.fi>
2014-01-07 10:45:10 +02:00
..
ap Fix req_scan-deplete-timeout and update eloop API for this 2014-01-07 10:45:10 +02:00
common Allow external programs to request wpa_radio work items 2014-01-07 10:45:10 +02:00
crypto OpenSSL: Include sha1/sha256 header files to verify declarations 2013-12-31 19:58:16 +02:00
drivers Add helper functions for cloning and freeing scan parameters 2014-01-05 22:35:52 +02:00
eap_common Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
eap_peer EAP-EKE: Allow forced algorithm selection to be configured 2013-12-29 17:18:17 +02:00
eap_server EAP server: Remove SIM-DB pending timestamp 2013-12-24 07:15:49 +02:00
eapol_auth Convert EAPOL authenticator dump into easier to parse format 2014-01-02 17:37:21 +02:00
eapol_supp Remove some unnecessary EAPOL port (un)authorized callbacks 2014-01-02 23:49:38 +02:00
l2_packet Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
p2p P2P: Use radio work to protect offchannel Action frame exchanges 2014-01-07 10:45:09 +02:00
radius Declare wpa_debug_* variables in src/utils/wpa_debug.h 2013-12-31 19:29:52 +02:00
rsn_supp Enable FT with SAE 2013-12-29 10:00:31 +02:00
tls Use ARRAY_SIZE() macro 2013-10-26 17:49:05 +03:00
utils Fix req_scan-deplete-timeout and update eloop API for this 2014-01-07 10:45:10 +02:00
wps WPS: Remove unused send_wpabuf() 2013-12-29 10:00:33 +02:00
lib.rules Add rules for building src/crypto as a library 2009-12-05 22:03:46 +02:00
Makefile P2P: Add initial version of P2P Module 2010-09-09 07:17:17 -07:00