aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-29 18:50:37 +0200
committerJouni Malinen <j@w1.fi>2008-12-29 18:50:37 +0200
commit98de44389045622d03736386e1e18df119ac9a55 (patch)
treecb6da538f0d42b6a23d94d49832dc73944ce50c8
parent8e09c6d25306135106c12a013966102ab01ddc38 (diff)
downloadexternal_wpa_supplicant_8_ti-98de44389045622d03736386e1e18df119ac9a55.zip
external_wpa_supplicant_8_ti-98de44389045622d03736386e1e18df119ac9a55.tar.gz
external_wpa_supplicant_8_ti-98de44389045622d03736386e1e18df119ac9a55.tar.bz2
WPS: Set recommended retransmission times with EAP method specific hint
-rw-r--r--src/eap_server/eap_wsc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/eap_server/eap_wsc.c b/src/eap_server/eap_wsc.c
index 6266636..892df70 100644
--- a/src/eap_server/eap_wsc.c
+++ b/src/eap_server/eap_wsc.c
@@ -436,6 +436,15 @@ static Boolean eap_wsc_isSuccess(struct eap_sm *sm, void *priv)
}
+static int eap_wsc_getTimeout(struct eap_sm *sm, void *priv)
+{
+ /* Recommended retransmit times: retransmit timeout 5 seconds,
+ * per-message timeout 15 seconds, i.e., 3 tries. */
+ sm->MaxRetrans = 2; /* total 3 attempts */
+ return 5;
+}
+
+
int eap_server_wsc_register(void)
{
struct eap_method *eap;
@@ -454,6 +463,7 @@ int eap_server_wsc_register(void)
eap->process = eap_wsc_process;
eap->isDone = eap_wsc_isDone;
eap->isSuccess = eap_wsc_isSuccess;
+ eap->getTimeout = eap_wsc_getTimeout;
ret = eap_server_method_register(eap);
if (ret)