From: vamsi krishna Date: Thu, 19 Jan 2017 09:43:44 +0000 (+0530) Subject: GAS: Cancel gas_query_timeout when AP responds with comeback delay X-Git-Tag: hostap_2_7~1745 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53b38209f46f177faa87324c086f50a6d7689460;p=thirdparty%2Fhostap.git 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 --- 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;