]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/ap/ieee802_11_auth.h
Use secondary channel provided by ACS for HT40 if valid
[thirdparty/hostap.git] / src / ap / ieee802_11_auth.h
CommitLineData
6fc6879b
JM
1/*
2 * hostapd / IEEE 802.11 authentication (ACL)
3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
6fc6879b
JM
7 */
8
9#ifndef IEEE802_11_AUTH_H
10#define IEEE802_11_AUTH_H
11
12enum {
13 HOSTAPD_ACL_REJECT = 0,
14 HOSTAPD_ACL_ACCEPT = 1,
15 HOSTAPD_ACL_PENDING = 2,
16 HOSTAPD_ACL_ACCEPT_TIMEOUT = 3
17};
18
29024efd
MB
19struct radius_sta {
20 u32 session_timeout;
21 u32 acct_interim_interval;
22 struct vlan_description vlan_id;
23 struct hostapd_sta_wpa_psk_short *psk;
24 char *identity;
25 char *radius_cui;
26};
27
1889af2e
MB
28int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr,
29 struct vlan_description *vlan_id);
6fc6879b 30int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr,
29024efd 31 const u8 *msg, size_t len, struct radius_sta *out,
92eb00ae 32 int is_probe_req);
6fc6879b
JM
33int hostapd_acl_init(struct hostapd_data *hapd);
34void hostapd_acl_deinit(struct hostapd_data *hapd);
f2a14be7 35void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk);
22fd2822 36void hostapd_acl_expire(struct hostapd_data *hapd);
d4ceaafc
MB
37void hostapd_copy_psk_list(struct hostapd_sta_wpa_psk_short **psk,
38 struct hostapd_sta_wpa_psk_short *src);
6fc6879b
JM
39
40#endif /* IEEE802_11_AUTH_H */