hs20_supplicant.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef HS20_SUPPLICANT_H
  8. #define HS20_SUPPLICANT_H
  9. void hs20_configure_frame_filters(struct wpa_supplicant *wpa_s);
  10. void wpas_hs20_add_indication(struct wpabuf *buf, int pps_mo_id);
  11. int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes,
  12. const u8 *payload, size_t payload_len, int inmem);
  13. void hs20_put_anqp_req(u32 stypes, const u8 *payload, size_t payload_len,
  14. struct wpabuf *buf);
  15. void hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s,
  16. struct wpa_bss *bss, const u8 *sa,
  17. const u8 *data, size_t slen, u8 dialog_token);
  18. int is_hs20_network(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
  19. struct wpa_bss *bss);
  20. int hs20_get_pps_mo_id(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
  21. void hs20_notify_parse_done(struct wpa_supplicant *wpa_s);
  22. void hs20_rx_subscription_remediation(struct wpa_supplicant *wpa_s,
  23. const char *url, u8 osu_method);
  24. void hs20_rx_deauth_imminent_notice(struct wpa_supplicant *wpa_s, u8 code,
  25. u16 reauth_delay, const char *url);
  26. void hs20_free_osu_prov(struct wpa_supplicant *wpa_s);
  27. void hs20_next_osu_icon(struct wpa_supplicant *wpa_s);
  28. void hs20_osu_icon_fetch(struct wpa_supplicant *wpa_s);
  29. int hs20_fetch_osu(struct wpa_supplicant *wpa_s, int skip_scan);
  30. void hs20_cancel_fetch_osu(struct wpa_supplicant *wpa_s);
  31. void hs20_icon_fetch_failed(struct wpa_supplicant *wpa_s);
  32. void hs20_start_osu_scan(struct wpa_supplicant *wpa_s);
  33. void hs20_init(struct wpa_supplicant *wpa_s);
  34. void hs20_deinit(struct wpa_supplicant *wpa_s);
  35. int hs20_get_icon(struct wpa_supplicant *wpa_s, const u8 *bssid,
  36. const char *file_name, size_t offset, size_t size,
  37. char *reply, size_t buf_len);
  38. int hs20_del_icon(struct wpa_supplicant *wpa_s, const u8 *bssid,
  39. const char *file_name);
  40. #endif /* HS20_SUPPLICANT_H */