From: Jouni Malinen Date: Mon, 27 Jun 2016 10:01:05 +0000 (+0300) Subject: GAS: Report GAS-QUERY-DONE event on initial req TX failure X-Git-Tag: hostap_2_6~317 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=9c21b2bf45e35ba169d9123941c46cf3b2896d9c GAS: Report GAS-QUERY-DONE event on initial req TX failure The GAS-QUERY-DONE event with result=INTERNAL_ERROR was reported on most other error cases, but the failure triggered by not being able to transmit a GAS Initial Request stopped the query silently. Make this more consistent with other error cases by reporting the same event. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/gas_query.c b/wpa_supplicant/gas_query.c index 52f50cf..c28fefa 100644 --- a/wpa_supplicant/gas_query.c +++ b/wpa_supplicant/gas_query.c @@ -696,7 +696,7 @@ static void gas_query_tx_initial_req(struct gas_query *gas, GAS_QUERY_WAIT_TIME_INITIAL) < 0) { wpa_printf(MSG_DEBUG, "GAS: Failed to send Action frame to " MACSTR, MAC2STR(query->addr)); - gas_query_free(query, 1); + gas_query_done(gas, query, GAS_QUERY_INTERNAL_ERROR); return; } gas->current = query;