FST: Enlarge State Transition Timeout (STT)
authorDedy Lansky <qca_dlansky@qca.qualcomm.com>
Thu, 25 Feb 2016 08:03:07 +0000 (10:03 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 3 Mar 2016 11:50:03 +0000 (13:50 +0200)
STT guards the exchange of FST Action frames with the peer station.
It was observed that sometimes Action frames sending is delayed at
driver/FW layers for few hundreds millisec.

Enlarge the STT to overcome such cases.

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
src/fst/fst_session.c

index 11f3b63..449e304 100644 (file)
@@ -181,7 +181,8 @@ static void fst_session_timeout_handler(void *eloop_data, void *user_ctx)
 
 static void fst_session_stt_arm(struct fst_session *s)
 {
-       eloop_register_timeout(0, TU_TO_US(FST_DEFAULT_SESSION_TIMEOUT_TU),
+       /* Action frames sometimes get delayed. Use relaxed timeout (2*) */
+       eloop_register_timeout(0, 2 * TU_TO_US(FST_DEFAULT_SESSION_TIMEOUT_TU),
                               fst_session_timeout_handler, NULL, s);
        s->stt_armed = TRUE;
 }