sta_info.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * hostapd / Station table
  3. * Copyright (c) 2002-2004, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #ifndef STA_INFO_H
  15. #define STA_INFO_H
  16. int ap_for_each_sta(struct hostapd_data *hapd,
  17. int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
  18. void *ctx),
  19. void *ctx);
  20. struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta);
  21. void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta);
  22. void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
  23. void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
  24. void hostapd_free_stas(struct hostapd_data *hapd);
  25. void ap_handle_timer(void *eloop_ctx, void *timeout_ctx);
  26. void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
  27. u32 session_timeout);
  28. void ap_sta_no_session_timeout(struct hostapd_data *hapd,
  29. struct sta_info *sta);
  30. struct sta_info * ap_sta_add(struct hostapd_data *hapd, const u8 *addr);
  31. void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta,
  32. u16 reason);
  33. void ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta,
  34. u16 reason);
  35. int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta,
  36. int old_vlanid);
  37. void ap_sta_start_ping(struct hostapd_data *hapd, struct sta_info *sta);
  38. void ap_sta_stop_ping(struct hostapd_data *hapd, struct sta_info *sta);
  39. #endif /* STA_INFO_H */