aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/gas_query.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-10-21 10:20:38 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-21 10:20:38 (GMT)
commitcbc548489205b719897202cffdb3d692ea3ca60f (patch)
treeba6fc0d8f3660e03d8782c11370ea8dc02ac8b23 /wpa_supplicant/gas_query.c
parentc3775143377887575ad24d244874ea770249f8c8 (diff)
downloadhostap-cbc548489205b719897202cffdb3d692ea3ca60f.zip
hostap-cbc548489205b719897202cffdb3d692ea3ca60f.tar.gz
hostap-cbc548489205b719897202cffdb3d692ea3ca60f.tar.bz2
GAS: Do not start new scan operation during an ongoing GAS query
These operations can have conflicting offchannel requirements, so wait with a new scan trigger until a pending GAS query has been completed. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/gas_query.c')
-rw-r--r--wpa_supplicant/gas_query.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/gas_query.c b/wpa_supplicant/gas_query.c
index 00f730e..c5554bd 100644
--- a/wpa_supplicant/gas_query.c
+++ b/wpa_supplicant/gas_query.c
@@ -598,3 +598,9 @@ void gas_query_cancel(struct gas_query *gas, const u8 *dst, u8 dialog_token)
gas_query_done(gas, query, GAS_QUERY_CANCELLED);
}
+
+
+int gas_query_in_progress(struct gas_query *gas)
+{
+ return gas->current != NULL;
+}