]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
GAS: Cancel gas_query_timeout when AP responds with comeback delay
authorvamsi krishna <vamsin@qti.qualcomm.com>
Thu, 19 Jan 2017 09:43:44 +0000 (15:13 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 23 Jan 2017 05:02:30 +0000 (07:02 +0200)
When AP responds with comeback delay for initial GAS query sent by STA,
gas_query_timeout should be cancelled to avoid GAS failures when
comeback delay is more than GAS_QUERY_TIMEOUT_PERIOD. The
gas_query_timeout is getting registered again when tx_status is received
for GAS comeback request.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/gas_query.c

index 691de0345d136c993c54d5ae24ecd55fd732c8ba..1b57d889208df337917784a6e9c337de600f3411 100644 (file)
@@ -407,6 +407,7 @@ static void gas_query_rx_initial(struct gas_query *gas,
        }
 
        if (comeback_delay) {
+               eloop_cancel_timeout(gas_query_timeout, gas, query);
                query->wait_comeback = 1;
                gas_query_tx_comeback_req_delay(gas, query, comeback_delay);
                return;