Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 1 | /* |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 2 | * Copyright (c) 2011-2013, Qualcomm Atheros, Inc. |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 3 | * |
| 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 Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 11 | void hs20_configure_frame_filters(struct wpa_supplicant *wpa_s); |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 12 | void wpas_hs20_add_indication(struct wpabuf *buf, int pps_mo_id, |
| 13 | int ap_release); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 14 | void wpas_hs20_add_roam_cons_sel(struct wpabuf *buf, |
| 15 | const struct wpa_ssid *ssid); |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 16 | |
| 17 | int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes, |
Dmitry Shmidt | 0e58d9b | 2015-12-22 10:59:44 -0800 | [diff] [blame] | 18 | const u8 *payload, size_t payload_len, int inmem); |
Dmitry Shmidt | 1590709 | 2014-03-25 10:42:57 -0700 | [diff] [blame] | 19 | void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len, |
| 20 | struct wpabuf *buf); |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 21 | void hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s, |
Dmitry Shmidt | 432d603 | 2015-01-21 13:19:05 -0800 | [diff] [blame] | 22 | struct wpa_bss *bss, const u8 *sa, |
Dmitry Shmidt | 0e58d9b | 2015-12-22 10:59:44 -0800 | [diff] [blame] | 23 | const u8 *data, size_t slen, u8 dialog_token); |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 24 | int get_hs20_version(struct wpa_bss *bss); |
Hai Shalom | 2cbbcd1 | 2021-03-08 18:33:38 -0800 | [diff] [blame] | 25 | int is_hs20_config(struct wpa_supplicant *wpa_s); |
Dmitry Shmidt | 51b6ea8 | 2013-05-08 10:42:09 -0700 | [diff] [blame] | 26 | int is_hs20_network(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, |
| 27 | struct wpa_bss *bss); |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 28 | int hs20_get_pps_mo_id(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid); |
| 29 | void hs20_notify_parse_done(struct wpa_supplicant *wpa_s); |
| 30 | |
| 31 | void hs20_rx_subscription_remediation(struct wpa_supplicant *wpa_s, |
| 32 | const char *url, u8 osu_method); |
| 33 | void hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, u8 code, |
| 34 | u16 reauth_delay, const char *url); |
Roshan Pius | 3a1667e | 2018-07-03 15:17:14 -0700 | [diff] [blame] | 35 | void hs20_rx_t_c_acceptance(struct wpa_supplicant *wpa_s, const char *url); |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 36 | |
| 37 | void hs20_free_osu_prov(struct wpa_supplicant *wpa_s); |
| 38 | void hs20_next_osu_icon(struct wpa_supplicant *wpa_s); |
| 39 | void hs20_osu_icon_fetch(struct wpa_supplicant *wpa_s); |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 40 | int hs20_fetch_osu(struct wpa_supplicant *wpa_s, int skip_scan); |
Dmitry Shmidt | f21452a | 2014-02-26 10:55:25 -0800 | [diff] [blame] | 41 | void hs20_cancel_fetch_osu(struct wpa_supplicant *wpa_s); |
| 42 | void hs20_icon_fetch_failed(struct wpa_supplicant *wpa_s); |
| 43 | void hs20_start_osu_scan(struct wpa_supplicant *wpa_s); |
Dmitry Shmidt | 0e58d9b | 2015-12-22 10:59:44 -0800 | [diff] [blame] | 44 | void hs20_init(struct wpa_supplicant *wpa_s); |
Dmitry Shmidt | 684785c | 2014-05-12 13:34:29 -0700 | [diff] [blame] | 45 | void hs20_deinit(struct wpa_supplicant *wpa_s); |
Dmitry Shmidt | 0e58d9b | 2015-12-22 10:59:44 -0800 | [diff] [blame] | 46 | int hs20_get_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, |
| 47 | const char *file_name, size_t offset, size_t size, |
| 48 | char *reply, size_t buf_len); |
| 49 | int hs20_del_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, |
| 50 | const char *file_name); |
Dmitry Shmidt | 0494959 | 2012-07-19 12:16:46 -0700 | [diff] [blame] | 51 | |
| 52 | #endif /* HS20_SUPPLICANT_H */ |