From c24f8e8e75b46f0b191cca788b6f4c10bed81861 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 20 Dec 2015 19:58:05 +0200 Subject: [PATCH] GAS: Do not cancel initial offchannel wait with comeback delay 1 The minimum comeback delay 1 is used to indicate that fragmentation is needed instead of indicating that the response is going to be available only after some time. Do not cancel offchannel wait for this case between the initial and comeback exchanges to avoid delaying the full operation unnecessarily. Signed-off-by: Jouni Malinen --- wpa_supplicant/gas_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/gas_query.c b/wpa_supplicant/gas_query.c index f6435bf7f..457f5fb64 100644 --- a/wpa_supplicant/gas_query.c +++ b/wpa_supplicant/gas_query.c @@ -366,7 +366,7 @@ static void gas_query_tx_comeback_req_delay(struct gas_query *gas, { unsigned int secs, usecs; - if (query->offchannel_tx_started) { + if (comeback_delay > 1 && query->offchannel_tx_started) { offchannel_send_action_done(gas->wpa_s); query->offchannel_tx_started = 0; }