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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-12-20 19:23:58 +02:00
parent 8fb718a748
commit a587666cba

View 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 || if (sta->gas_dialog[i].dialog_token != dialog_token ||
!sta->gas_dialog[i].valid) !sta->gas_dialog[i].valid)
continue; continue;
ap_sta_replenish_timeout(hapd, sta, 5);
return &sta->gas_dialog[i]; return &sta->gas_dialog[i];
} }
wpa_printf(MSG_DEBUG, "ANQP: Could not find dialog for " wpa_printf(MSG_DEBUG, "ANQP: Could not find dialog for "