aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/hs20_supplicant.c
diff options
context:
space:
mode:
authorKyeyoon Park <kyeyoonp@qca.qualcomm.com>2013-10-21 10:13:42 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-21 10:13:42 (GMT)
commit24c694b465ea9535436caf85c0e71d4346e15abd (patch)
treebf5257698e287d944707b8fcc2849f123168b4be /wpa_supplicant/hs20_supplicant.c
parent7255983b59adb56a74f6c3a97ae9171e1481a12f (diff)
downloadhostap-24c694b465ea9535436caf85c0e71d4346e15abd.zip
hostap-24c694b465ea9535436caf85c0e71d4346e15abd.tar.gz
hostap-24c694b465ea9535436caf85c0e71d4346e15abd.tar.bz2
GAS: Delay GAS query Tx while another query is in progress
It would be possible to issue another GAS query when a previous one is still in progress and this could result in conflicting offchannel operations. Prevent that by delaying GAS query initiation until the previous operation has been completed. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/hs20_supplicant.c')
-rw-r--r--wpa_supplicant/hs20_supplicant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/hs20_supplicant.c b/wpa_supplicant/hs20_supplicant.c
index 4048cf7..5f30313 100644
--- a/wpa_supplicant/hs20_supplicant.c
+++ b/wpa_supplicant/hs20_supplicant.c
@@ -125,12 +125,12 @@ int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes,
res = gas_query_req(wpa_s->gas, dst, freq, buf, anqp_resp_cb, wpa_s);
if (res < 0) {
wpa_printf(MSG_DEBUG, "ANQP: Failed to send Query Request");
+ wpabuf_free(buf);
ret = -1;
} else
wpa_printf(MSG_DEBUG, "ANQP: Query started with dialog token "
"%u", res);
- wpabuf_free(buf);
return ret;
}