]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
GAS: Do not cancel initial offchannel wait with comeback delay 1
authorJouni Malinen <j@w1.fi>
Sun, 20 Dec 2015 17:58:05 +0000 (19:58 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Dec 2015 19:07:33 +0000 (21:07 +0200)
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 <j@w1.fi>
wpa_supplicant/gas_query.c

index f6435bf7fedd6d763d2b2f4b40626ae8cc60884e..457f5fb647d3c6397e75b6133502b20a6f9012b4 100644 (file)
@@ -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;
        }