From a587666cba6a334f3b271b7f49c5c42a9fa5e93d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 20 Dec 2015 19:23:58 +0200 Subject: [PATCH] GAS server: Replenish temporary STA entry timeout on comeback request Previously, the five second timeout was added at the beginning of the full GAS query and it was not replenished during fragmented exchanges. This could result in timing out a query if it takes significant time to go through the possibly multiple fragments and long comeback delay. Signed-off-by: Jouni Malinen --- src/ap/gas_serv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ap/gas_serv.c b/src/ap/gas_serv.c index 4bcdf6f92..b9d617625 100644 --- a/src/ap/gas_serv.c +++ b/src/ap/gas_serv.c @@ -101,6 +101,7 @@ gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, if (sta->gas_dialog[i].dialog_token != dialog_token || !sta->gas_dialog[i].valid) continue; + ap_sta_replenish_timeout(hapd, sta, 5); return &sta->gas_dialog[i]; } wpa_printf(MSG_DEBUG, "ANQP: Could not find dialog for "