hostapd/src/utils
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
..
.gitignore Add build rules for building a library from src/utils files 2009-12-05 21:39:41 +02:00
base64.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
base64.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
bitfield.c Add bitfield routines 2013-04-27 22:16:40 +03:00
bitfield.h Add bitfield routines 2013-04-27 22:16:40 +03:00
build_config.h Remove forgotten Xcode defines 2013-07-09 15:20:17 +03:00
common.c Move int_array helpfer functions to utils/common.c 2013-12-26 13:37:06 +02:00
common.h Define __maybe_unused 2013-12-29 13:38:27 +02:00
edit.c edit: Fix history processing on running old command 2013-05-05 13:09:55 +03:00
edit.h edit: Add support for setting prompt string 2012-08-05 20:46:34 +03:00
edit_readline.c edit: Fix libreadline history clearing with WPA_TRACE 2013-05-14 16:46:38 +03:00
edit_simple.c edit: Add support for setting prompt string 2012-08-05 20:46:34 +03:00
eloop.c Fix req_scan-deplete-timeout and update eloop API for this 2014-01-07 10:45:10 +02:00
eloop.h Fix req_scan-deplete-timeout and update eloop API for this 2014-01-07 10:45:10 +02:00
eloop_win.c Fix req_scan-deplete-timeout and update eloop API for this 2014-01-07 10:45:10 +02:00
ext_password.c EXT PW: Add framework for supporting external password storage 2012-08-03 22:15:42 +03:00
ext_password.h EXT PW: Add framework for supporting external password storage 2012-08-03 22:15:42 +03:00
ext_password_i.h EXT PW: Add framework for supporting external password storage 2012-08-03 22:15:42 +03:00
ext_password_test.c EXT PW: Add framework for supporting external password storage 2012-08-03 22:15:42 +03:00
includes.h Remove experimental Symbian build 2012-04-07 13:00:30 +03:00
ip_addr.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
ip_addr.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
list.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
os.h Use monotonic clock for last_sae_token_key_update 2013-12-07 20:50:15 -08:00
os_internal.c Use monotonic clock for relative time for eloop if available 2013-11-20 23:52:56 +02:00
os_none.c Use monotonic clock for relative time for eloop if available 2013-11-20 23:52:56 +02:00
os_unix.c Use monotonic clock for relative time for eloop if available 2013-11-20 23:52:56 +02:00
os_win32.c Use monotonic clock for relative time for eloop if available 2013-11-20 23:52:56 +02:00
pcsc_funcs.c SCARD: Clean up SIM/USIM selection 2013-11-17 16:47:38 +02:00
pcsc_funcs.h SCARD: Clean up SIM/USIM selection 2013-11-17 16:47:38 +02:00
radiotap.c Share the same radiotap helper implementation 2009-01-09 15:22:19 +02:00
radiotap.h nl80211: Implement noack policy for send_mlme 2011-11-19 19:22:13 +02:00
radiotap_iter.h Add a copyright and license statement for a radiotap header file 2011-06-23 16:39:26 +03:00
state_machine.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
trace.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
trace.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
uuid.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
uuid.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
wpa_debug.c Convert wpa_hexdump functions to use void pointer instead of u8 * 2013-12-24 23:12:37 +02:00
wpa_debug.h Declare wpa_debug_* variables in src/utils/wpa_debug.h 2013-12-31 19:29:52 +02:00
wpabuf.c wpabuf: Get rid of separate ext_data pointer 2012-08-19 18:25:25 +03:00
wpabuf.h wpabuf: Get rid of separate ext_data pointer 2012-08-19 18:25:25 +03:00