1 /*
2 * Dummy functions to allow link_test to be linked. The need for these
3 * functions should be removed to allow IEEE 802.1X/EAPOL authenticator to
4 * be built outside hostapd.
5 */
6
7 #include "includes.h"
8
9 #include "common.h"
10
11
12 struct hostapd_data;
13 struct sta_info;
14 struct rsn_pmksa_cache_entry;
15 struct eapol_state_machine;
16 struct hostapd_eap_user;
17 struct hostapd_bss_config;
18 struct hostapd_vlan;
19
20
ap_get_sta(struct hostapd_data * hapd,const u8 * sta)21 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta)
22 {
23 return NULL;
24 }
25
26
ap_for_each_sta(struct hostapd_data * hapd,int (* cb)(struct hostapd_data * hapd,struct sta_info * sta,void * ctx),void * ctx)27 int ap_for_each_sta(struct hostapd_data *hapd,
28 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
29 void *ctx),
30 void *ctx)
31 {
32 return 0;
33 }
34
35
ap_sta_session_timeout(struct hostapd_data * hapd,struct sta_info * sta,u32 session_timeout)36 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
37 u32 session_timeout)
38 {
39 }
40
41
ap_sta_bind_vlan(struct hostapd_data * hapd,struct sta_info * sta,int old_vlanid)42 int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta,
43 int old_vlanid)
44 {
45 return 0;
46 }
47
48
rsn_preauth_finished(struct hostapd_data * hapd,struct sta_info * sta,int success)49 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
50 int success)
51 {
52 }
53
54
rsn_preauth_send(struct hostapd_data * hapd,struct sta_info * sta,u8 * buf,size_t len)55 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
56 u8 *buf, size_t len)
57 {
58 }
59
60
accounting_sta_start(struct hostapd_data * hapd,struct sta_info * sta)61 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta)
62 {
63 }
64
65
pmksa_cache_to_eapol_data(struct rsn_pmksa_cache_entry * entry,struct eapol_state_machine * eapol)66 void pmksa_cache_to_eapol_data(struct rsn_pmksa_cache_entry *entry,
67 struct eapol_state_machine *eapol)
68 {
69 }
70
71
72 const struct hostapd_eap_user *
hostapd_get_eap_user(const struct hostapd_bss_config * conf,const u8 * identity,size_t identity_len,int phase2)73 hostapd_get_eap_user(const struct hostapd_bss_config *conf, const u8 *identity,
74 size_t identity_len, int phase2)
75 {
76 return NULL;
77 }
78
79
hostapd_get_vlan_id_ifname(struct hostapd_vlan * vlan,int vlan_id)80 const char * hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id)
81 {
82 return NULL;
83 }
84