1 /*
2  * Copyright (c) 2011-2013, Qualcomm Atheros, Inc.
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 
11 void hs20_configure_frame_filters(struct wpa_supplicant *wpa_s);
12 void wpas_hs20_add_indication(struct wpabuf *buf, int pps_mo_id,
13 			      int ap_release);
14 void wpas_hs20_add_roam_cons_sel(struct wpabuf *buf,
15 				 const struct wpa_ssid *ssid);
16 
17 int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes,
18 		       const u8 *payload, size_t payload_len);
19 void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len,
20 		       struct wpabuf *buf);
21 void hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s,
22 				  struct wpa_bss *bss, const u8 *sa,
23 				  const u8 *data, size_t slen, u8 dialog_token);
24 int get_hs20_version(struct wpa_bss *bss);
25 int is_hs20_network(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
26 		    struct wpa_bss *bss);
27 int hs20_get_pps_mo_id(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
28 
29 void hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, u8 code,
30 				    u16 reauth_delay, const char *url);
31 void hs20_rx_t_c_acceptance(struct wpa_supplicant *wpa_s, const char *url);
32 
33 
34 #endif /* HS20_SUPPLICANT_H */
35