blob: 89c47a536cb59012d73819e6ce17e6455ca466b7 [file] [log] [blame]
Dmitry Shmidt04949592012-07-19 12:16:46 -07001/*
Dmitry Shmidtf21452a2014-02-26 10:55:25 -08002 * Copyright (c) 2011-2013, Qualcomm Atheros, Inc.
Dmitry Shmidt04949592012-07-19 12:16:46 -07003 *
4 * This software may be distributed under the terms of the BSD license.
5 * See README for more details.
6 */
7
8#ifndef HS20_SUPPLICANT_H
9#define HS20_SUPPLICANT_H
10
Dmitry Shmidt849734c2016-05-27 09:59:01 -070011void hs20_configure_frame_filters(struct wpa_supplicant *wpa_s);
Dmitry Shmidtf21452a2014-02-26 10:55:25 -080012void wpas_hs20_add_indication(struct wpabuf *buf, int pps_mo_id);
Dmitry Shmidt04949592012-07-19 12:16:46 -070013
14int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes,
Dmitry Shmidt0e58d9b2015-12-22 10:59:44 -080015 const u8 *payload, size_t payload_len, int inmem);
Dmitry Shmidt04949592012-07-19 12:16:46 -070016struct wpabuf * hs20_build_anqp_req(u32 stypes, const u8 *payload,
17 size_t payload_len);
Dmitry Shmidt15907092014-03-25 10:42:57 -070018void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len,
19 struct wpabuf *buf);
Dmitry Shmidt04949592012-07-19 12:16:46 -070020void hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s,
Dmitry Shmidt432d6032015-01-21 13:19:05 -080021 struct wpa_bss *bss, const u8 *sa,
Dmitry Shmidt0e58d9b2015-12-22 10:59:44 -080022 const u8 *data, size_t slen, u8 dialog_token);
Dmitry Shmidt51b6ea82013-05-08 10:42:09 -070023int is_hs20_network(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
24 struct wpa_bss *bss);
Dmitry Shmidtf21452a2014-02-26 10:55:25 -080025int hs20_get_pps_mo_id(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
26void hs20_notify_parse_done(struct wpa_supplicant *wpa_s);
27
28void hs20_rx_subscription_remediation(struct wpa_supplicant *wpa_s,
29 const char *url, u8 osu_method);
30void hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, u8 code,
31 u16 reauth_delay, const char *url);
32
33void hs20_free_osu_prov(struct wpa_supplicant *wpa_s);
34void hs20_next_osu_icon(struct wpa_supplicant *wpa_s);
35void hs20_osu_icon_fetch(struct wpa_supplicant *wpa_s);
36int hs20_fetch_osu(struct wpa_supplicant *wpa_s);
37void hs20_cancel_fetch_osu(struct wpa_supplicant *wpa_s);
38void hs20_icon_fetch_failed(struct wpa_supplicant *wpa_s);
39void hs20_start_osu_scan(struct wpa_supplicant *wpa_s);
Dmitry Shmidt0e58d9b2015-12-22 10:59:44 -080040void hs20_init(struct wpa_supplicant *wpa_s);
Dmitry Shmidt684785c2014-05-12 13:34:29 -070041void hs20_deinit(struct wpa_supplicant *wpa_s);
Dmitry Shmidt0e58d9b2015-12-22 10:59:44 -080042int hs20_get_icon(struct wpa_supplicant *wpa_s, const u8 *bssid,
43 const char *file_name, size_t offset, size_t size,
44 char *reply, size_t buf_len);
45int hs20_del_icon(struct wpa_supplicant *wpa_s, const u8 *bssid,
46 const char *file_name);
Dmitry Shmidt04949592012-07-19 12:16:46 -070047
48#endif /* HS20_SUPPLICANT_H */