Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ap.h 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. const u8 *p2p_dev_addr);
  24. int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
  25. const char *pin, char *buf, size_t buflen);
  26. int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s);
  27. void wpas_wps_ap_pin_disable(struct wpa_supplicant *wpa_s);
  28. const char * wpas_wps_ap_pin_random(struct wpa_supplicant *wpa_s, int timeout);
  29. const char * wpas_wps_ap_pin_get(struct wpa_supplicant *wpa_s);
  30. int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
  31. int timeout);
  32. int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s,
  33. char *buf, size_t buflen);
  34. int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr,
  35. char *buf, size_t buflen);
  36. int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
  37. char *buf, size_t buflen);
  38. int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
  39. size_t buflen, int verbose);
  40. void ap_tx_status(void *ctx, const u8 *addr,
  41. const u8 *buf, size_t len, int ack);
  42. void ap_rx_from_unknown_sta(void *ctx, const u8 *frame, size_t len);
  43. void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt);
  44. void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok);
  45. int wpa_supplicant_ap_update_beacon(struct wpa_supplicant *wpa_s);
  46. int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s,
  47. const u8 *addr);
  48. void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s);
  49. #endif /* AP_H */