aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-10-16 19:44:28 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-16 20:55:34 (GMT)
commitafc064fe7ae899966f5de28b3f11881b70c7046e (patch)
treef6b374875d40d081fa9aae5ed789f6d0c664a674 /wpa_supplicant/interworking.h
parent40eac89023b439df9f12b290ab47d6ea06841331 (diff)
downloadhostap-afc064fe7ae899966f5de28b3f11881b70c7046e.zip
hostap-afc064fe7ae899966f5de28b3f11881b70c7046e.tar.gz
hostap-afc064fe7ae899966f5de28b3f11881b70c7046e.tar.bz2
Interworking: Add ANQP query requests
Add mechanism for using GAS/ANQP to query Interworking related information from APs. The received information is stored in the BSS table and can be viewed with ctrl_iface BSS command. New ctrl_iface command ANQP_GET can be used to fetch ANQP elements from a specific AP. Additional commands FETCH_ANQP and STOP_FETCH_ANQP can be used to initiate and stop an iteration through all APs in the BSS table that indicate support Interworking to fetch ANQP elements from them.
Diffstat (limited to 'wpa_supplicant/interworking.h')
-rw-r--r--wpa_supplicant/interworking.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.h b/wpa_supplicant/interworking.h
new file mode 100644
index 0000000..2a9790b
--- /dev/null
+++ b/wpa_supplicant/interworking.h
@@ -0,0 +1,29 @@
+/*
+ * Interworking (IEEE 802.11u)
+ * Copyright (c) 2011, Qualcomm Atheros
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef INTERWORKING_H
+#define INTERWORKING_H
+
+enum gas_query_result;
+
+int anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst,
+ u16 info_ids[], size_t num_ids);
+void anqp_resp_cb(void *ctx, const u8 *dst, u8 dialog_token,
+ enum gas_query_result result,
+ const struct wpabuf *adv_proto,
+ const struct wpabuf *resp, u16 status_code);
+int interworking_fetch_anqp(struct wpa_supplicant *wpa_s);
+void interworking_stop_fetch_anqp(struct wpa_supplicant *wpa_s);
+
+#endif /* INTERWORKING_H */