interworking.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Interworking (IEEE 802.11u)
  3. * Copyright (c) 2011-2012, Qualcomm Atheros
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef INTERWORKING_H
  9. #define INTERWORKING_H
  10. enum gas_query_result;
  11. int anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst,
  12. u16 info_ids[], size_t num_ids, u32 subtypes,
  13. u32 mbo_subtypes);
  14. void anqp_resp_cb(void *ctx, const u8 *dst, u8 dialog_token,
  15. enum gas_query_result result,
  16. const struct wpabuf *adv_proto,
  17. const struct wpabuf *resp, u16 status_code);
  18. int gas_send_request(struct wpa_supplicant *wpa_s, const u8 *dst,
  19. const struct wpabuf *adv_proto,
  20. const struct wpabuf *query);
  21. int interworking_fetch_anqp(struct wpa_supplicant *wpa_s);
  22. void interworking_stop_fetch_anqp(struct wpa_supplicant *wpa_s);
  23. int interworking_select(struct wpa_supplicant *wpa_s, int auto_select,
  24. int *freqs);
  25. int interworking_connect(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
  26. int only_add);
  27. void interworking_start_fetch_anqp(struct wpa_supplicant *wpa_s);
  28. int interworking_home_sp_cred(struct wpa_supplicant *wpa_s,
  29. struct wpa_cred *cred,
  30. struct wpabuf *domain_names);
  31. int domain_name_list_contains(struct wpabuf *domain_names,
  32. const char *domain, int exact_match);
  33. #endif /* INTERWORKING_H */