huangcm
2025-07-01 676035278781360996553c427a12bf358249ebf7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
 * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
 *
 * This software may be distributed under the terms of the BSD license.
 * See README for more details.
 */
 
#ifndef PREAUTH_H
#define PREAUTH_H
 
#ifdef CONFIG_RSN_PREAUTH
 
int rsn_preauth_iface_init(struct hostapd_data *hapd);
void rsn_preauth_iface_deinit(struct hostapd_data *hapd);
void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
             int success);
void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
             u8 *buf, size_t len);
void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
 
#else /* CONFIG_RSN_PREAUTH */
 
static inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
{
   return 0;
}
 
static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
{
}
 
static inline void rsn_preauth_finished(struct hostapd_data *hapd,
                   struct sta_info *sta,
                   int success)
{
}
 
static inline void rsn_preauth_send(struct hostapd_data *hapd,
                   struct sta_info *sta,
                   u8 *buf, size_t len)
{
}
 
static inline void rsn_preauth_free_station(struct hostapd_data *hapd,
                       struct sta_info *sta)
{
}
 
#endif /* CONFIG_RSN_PREAUTH */
 
#endif /* PREAUTH_H */