ieee802_11_auth.h 785 B

123456789101112131415161718192021222324252627
  1. /*
  2. * hostapd / IEEE 802.11 authentication (ACL)
  3. * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef IEEE802_11_AUTH_H
  9. #define IEEE802_11_AUTH_H
  10. enum {
  11. HOSTAPD_ACL_REJECT = 0,
  12. HOSTAPD_ACL_ACCEPT = 1,
  13. HOSTAPD_ACL_PENDING = 2,
  14. HOSTAPD_ACL_ACCEPT_TIMEOUT = 3
  15. };
  16. int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr,
  17. const u8 *msg, size_t len, u32 *session_timeout,
  18. u32 *acct_interim_interval, int *vlan_id,
  19. struct hostapd_sta_wpa_psk_short **psk,
  20. char **identity, char **radius_cui);
  21. int hostapd_acl_init(struct hostapd_data *hapd);
  22. void hostapd_acl_deinit(struct hostapd_data *hapd);
  23. #endif /* IEEE802_11_AUTH_H */