blob: 3d22292618b2200fc8bdc1d2bb0925c8eef3a3bd [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,
Dmitry Shmidt9839ecd2016-11-07 11:05:47 -080015 u16 info_ids[], size_t num_ids, u32 subtypes,
16 int get_cell_pref);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080017void anqp_resp_cb(void *ctx, const u8 *dst, u8 dialog_token,
18 enum gas_query_result result,
19 const struct wpabuf *adv_proto,
20 const struct wpabuf *resp, u16 status_code);
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070021int gas_send_request(struct wpa_supplicant *wpa_s, const u8 *dst,
22 const struct wpabuf *adv_proto,
23 const struct wpabuf *query);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080024int interworking_fetch_anqp(struct wpa_supplicant *wpa_s);
25void interworking_stop_fetch_anqp(struct wpa_supplicant *wpa_s);
Dmitry Shmidtfb79edc2014-01-10 10:45:54 -080026int interworking_select(struct wpa_supplicant *wpa_s, int auto_select,
27 int *freqs);
Dmitry Shmidt7f656022015-02-25 14:36:37 -080028int interworking_connect(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
29 int only_add);
Dmitry Shmidt61d9df32012-08-29 16:22:06 -070030void interworking_start_fetch_anqp(struct wpa_supplicant *wpa_s);
Dmitry Shmidtd5e49232012-12-03 15:08:10 -080031int interworking_home_sp_cred(struct wpa_supplicant *wpa_s,
32 struct wpa_cred *cred,
33 struct wpabuf *domain_names);
Dmitry Shmidtf21452a2014-02-26 10:55:25 -080034int domain_name_list_contains(struct wpabuf *domain_names,
35 const char *domain, int exact_match);
Dmitry Shmidt1f69aa52012-01-24 16:10:04 -080036
37#endif /* INTERWORKING_H */