ap.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * WPA Supplicant - Basic AP mode support routines
  3. * Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
  4. * Copyright (c) 2009, Atheros Communications
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Alternatively, this software may be distributed under the terms of BSD
  11. * license.
  12. *
  13. * See README and COPYING for more details.
  14. */
  15. #ifndef AP_H
  16. #define AP_H
  17. int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
  18. struct wpa_ssid *ssid);
  19. void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s);
  20. void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s,
  21. const u8 *src_addr, const u8 *buf, size_t len);
  22. int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid);
  23. int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
  24. const char *pin, char *buf, size_t buflen);
  25. int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s,
  26. char *buf, size_t buflen);
  27. int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr,
  28. char *buf, size_t buflen);
  29. int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
  30. char *buf, size_t buflen);
  31. int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
  32. size_t buflen, int verbose);
  33. #endif /* AP_H */