xref: /freebsd/contrib/wpa/src/ap/iapp.h (revision 38f0b757fd84d17d0fc24739a7cda160c4516d81)
1 /*
2  * hostapd / IEEE 802.11F-2003 Inter-Access Point Protocol (IAPP)
3  * Copyright (c) 2002-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 
9 #ifndef IAPP_H
10 #define IAPP_H
11 
12 struct iapp_data;
13 
14 #ifdef CONFIG_IAPP
15 
16 void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta);
17 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface);
18 void iapp_deinit(struct iapp_data *iapp);
19 
20 #else /* CONFIG_IAPP */
21 
22 static inline void iapp_new_station(struct iapp_data *iapp,
23 				    struct sta_info *sta)
24 {
25 }
26 
27 static inline struct iapp_data * iapp_init(struct hostapd_data *hapd,
28 					   const char *iface)
29 {
30 	return NULL;
31 }
32 
33 static inline void iapp_deinit(struct iapp_data *iapp)
34 {
35 }
36 
37 #endif /* CONFIG_IAPP */
38 
39 #endif /* IAPP_H */
40