Add KTR_KERNENTRY to ktr(4) and LINT.
[dragonfly.git] / contrib / hostapd-0.5.8 / iapp.h
blob86de59256043cb7043fcd3ca3e2b4c5df302b780
1 /*
2 * hostapd / IEEE 802.11F-2003 Inter-Access Point Protocol (IAPP)
3 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef IAPP_H
16 #define IAPP_H
18 struct iapp_data;
20 #ifdef CONFIG_IAPP
22 void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta);
23 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface);
24 void iapp_deinit(struct iapp_data *iapp);
25 int iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
26 struct hostapd_bss_config *oldbss);
28 #else /* CONFIG_IAPP */
30 static inline void iapp_new_station(struct iapp_data *iapp,
31 struct sta_info *sta)
35 static inline struct iapp_data * iapp_init(struct hostapd_data *hapd,
36 const char *iface)
38 return NULL;
41 static inline void iapp_deinit(struct iapp_data *iapp)
45 static inline int
46 iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
47 struct hostapd_bss_config *oldbss)
49 return 0;
52 #endif /* CONFIG_IAPP */
54 #endif /* IAPP_H */