From 53b38209f46f177faa87324c086f50a6d7689460 Mon Sep 17 00:00:00 2001 From: vamsi krishna Date: Thu, 19 Jan 2017 15:13:44 +0530 Subject: [PATCH] GAS: Cancel gas_query_timeout when AP responds with comeback delay 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 --- wpa_supplicant/gas_query.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/gas_query.c b/wpa_supplicant/gas_query.c index 691de0345..1b57d8892 100644 --- a/wpa_supplicant/gas_query.c +++ b/wpa_supplicant/gas_query.c @@ -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;