[PATCH v3 1/3] GAS server: Keep a waiting entry when a comeback delay is not ACKed
Gustavo Bertoli
gubertoli at gmail.com
Sun Nov 15 12:47:27 PST 2026
When a response that only announces a comeback delay is not ACKed,
gas_server_handle_tx_status() drops the pending entry. That frame
carries no response data and the requester will ask again, but with
the entry gone the response can no longer be delivered.
Keep the entry in this case. This applies to every gas_server user of
a comeback delay.
Signed-off-by: Gustavo Bertoli <gubertoli at gmail.com>
---
src/common/gas_server.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/common/gas_server.c b/src/common/gas_server.c
index 066c51f42..51f6a572e 100644
--- a/src/common/gas_server.c
+++ b/src/common/gas_server.c
@@ -436,9 +436,11 @@ static void gas_server_handle_tx_status(struct gas_server_response *response,
return;
}
- if (ack && !response->resp && response->comeback_delay) {
+ if (response->comeback_delay && !response->frag_id) {
+ /* No response data was sent, so the peer can ask again */
wpa_printf(MSG_DEBUG,
- "GAS: Waiting for response - keep pending entry");
+ "GAS: Waiting for response (ack=%d) - keep pending entry",
+ ack);
return;
}
--
2.43.0
More information about the Hostap
mailing list