]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
GAS server: Replenish temporary STA entry timeout on comeback request
authorJouni Malinen <j@w1.fi>
Sun, 20 Dec 2015 17:23:58 +0000 (19:23 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Dec 2015 17:43:23 +0000 (19:43 +0200)
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 <j@w1.fi>
src/ap/gas_serv.c

index 4bcdf6f92cd700be796ad8a091663c862748baae..b9d61762503ffafb2bc31e502af3e3daa2cec8d4 100644 (file)
@@ -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 "