blob: cb8438e666d28a553e08a57d71361ae8f97aa19e [file] [log] [blame]
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -08001/*
2 * Interworking (IEEE 802.11u)
Dmitry Shmidt61d9df32012-08-29 16:22:06 -07003 * Copyright (c) 2011-2012, Qualcomm Atheros
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -08004 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -08007 */
8
9#ifndef INTERWORKING_H
10#define INTERWORKING_H
11
12enum gas_query_result;
13
14int anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst,
15 u16 info_ids[], size_t num_ids);
16void anqp_resp_cb(void *ctx, const u8 *dst, u8 dialog_token,
17 enum gas_query_result result,
18 const struct wpabuf *adv_proto,
19 const struct wpabuf *resp, u16 status_code);
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070020int gas_send_request(struct wpa_supplicant *wpa_s, const u8 *dst,
21 const struct wpabuf *adv_proto,
22 const struct wpabuf *query);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080023int interworking_fetch_anqp(struct wpa_supplicant *wpa_s);
24void interworking_stop_fetch_anqp(struct wpa_supplicant *wpa_s);
25int interworking_select(struct wpa_supplicant *wpa_s, int auto_select);
26int interworking_connect(struct wpa_supplicant *wpa_s, struct wpa_bss *bss);
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070027void interworking_start_fetch_anqp(struct wpa_supplicant *wpa_s);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080028
29#endif /* INTERWORKING_H */