2011-09-08 20:52:23 +03:00
|
|
|
/*
|
2013-01-26 00:10:41 +02:00
|
|
|
* Copyright (c) 2011-2013, Qualcomm Atheros, Inc.
|
2011-09-08 20:52:23 +03:00
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HS20_SUPPLICANT_H
|
|
|
|
#define HS20_SUPPLICANT_H
|
|
|
|
|
2016-04-06 17:14:41 +03:00
|
|
|
void hs20_configure_frame_filters(struct wpa_supplicant *wpa_s);
|
2012-11-02 12:08:11 +02:00
|
|
|
void wpas_hs20_add_indication(struct wpabuf *buf, int pps_mo_id);
|
2018-04-17 17:22:56 +03:00
|
|
|
void wpas_hs20_add_roam_cons_sel(struct wpabuf *buf,
|
|
|
|
const struct wpa_ssid *ssid);
|
2011-09-08 20:52:23 +03:00
|
|
|
|
2011-09-08 20:52:23 +03:00
|
|
|
int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes,
|
2015-12-10 17:01:46 -08:00
|
|
|
const u8 *payload, size_t payload_len, int inmem);
|
2014-03-24 17:36:13 -07:00
|
|
|
void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len,
|
|
|
|
struct wpabuf *buf);
|
2011-09-08 20:52:23 +03:00
|
|
|
void hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s,
|
2015-01-17 17:47:32 +02:00
|
|
|
struct wpa_bss *bss, const u8 *sa,
|
2015-12-10 17:01:46 -08:00
|
|
|
const u8 *data, size_t slen, u8 dialog_token);
|
2013-05-05 16:29:21 +03:00
|
|
|
int is_hs20_network(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
|
|
|
|
struct wpa_bss *bss);
|
2012-11-02 12:08:11 +02:00
|
|
|
int hs20_get_pps_mo_id(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
|
2013-01-26 00:10:41 +02:00
|
|
|
void hs20_notify_parse_done(struct wpa_supplicant *wpa_s);
|
2011-09-08 20:52:23 +03:00
|
|
|
|
2012-11-02 13:05:57 +02:00
|
|
|
void hs20_rx_subscription_remediation(struct wpa_supplicant *wpa_s,
|
|
|
|
const char *url, u8 osu_method);
|
2013-07-26 22:12:37 +03:00
|
|
|
void hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, u8 code,
|
|
|
|
u16 reauth_delay, const char *url);
|
2018-04-24 00:17:47 +03:00
|
|
|
void hs20_rx_t_c_acceptance(struct wpa_supplicant *wpa_s, const char *url);
|
2012-11-02 13:05:57 +02:00
|
|
|
|
2013-01-26 00:10:41 +02:00
|
|
|
void hs20_free_osu_prov(struct wpa_supplicant *wpa_s);
|
|
|
|
void hs20_next_osu_icon(struct wpa_supplicant *wpa_s);
|
|
|
|
void hs20_osu_icon_fetch(struct wpa_supplicant *wpa_s);
|
2016-07-12 23:13:09 +03:00
|
|
|
int hs20_fetch_osu(struct wpa_supplicant *wpa_s, int skip_scan);
|
2013-01-26 00:10:41 +02:00
|
|
|
void hs20_cancel_fetch_osu(struct wpa_supplicant *wpa_s);
|
|
|
|
void hs20_icon_fetch_failed(struct wpa_supplicant *wpa_s);
|
2013-12-12 18:39:00 -08:00
|
|
|
void hs20_start_osu_scan(struct wpa_supplicant *wpa_s);
|
2015-12-19 18:49:32 +02:00
|
|
|
void hs20_init(struct wpa_supplicant *wpa_s);
|
2014-05-12 19:14:55 +03:00
|
|
|
void hs20_deinit(struct wpa_supplicant *wpa_s);
|
2015-12-10 17:01:46 -08:00
|
|
|
int hs20_get_icon(struct wpa_supplicant *wpa_s, const u8 *bssid,
|
|
|
|
const char *file_name, size_t offset, size_t size,
|
|
|
|
char *reply, size_t buf_len);
|
|
|
|
int hs20_del_icon(struct wpa_supplicant *wpa_s, const u8 *bssid,
|
|
|
|
const char *file_name);
|
2013-01-26 00:10:41 +02:00
|
|
|
|
2011-09-08 20:52:23 +03:00
|
|
|
#endif /* HS20_SUPPLICANT_H */
|