aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/preauth_auth.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-25 22:05:40 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-25 22:05:40 (GMT)
commit6226e38d002cac786709ef1c24fe09811f70b6d7 (patch)
tree50fe2e34169addfca7ad10e4f73fff99997c5ef4 /src/ap/preauth_auth.h
parentfcfda83bf9ea76a888bc8000f0286f62eec2533b (diff)
downloadhostap-6226e38d002cac786709ef1c24fe09811f70b6d7.zip
hostap-6226e38d002cac786709ef1c24fe09811f70b6d7.tar.gz
hostap-6226e38d002cac786709ef1c24fe09811f70b6d7.tar.bz2
Rename some src/ap files to avoid duplicate file names
Doxygen and some build tools may get a bit confused about same file name being used in different directories. Clean this up a bit by renaming some of the duplicated file names in src/ap.
Diffstat (limited to 'src/ap/preauth_auth.h')
-rw-r--r--src/ap/preauth_auth.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/ap/preauth_auth.h b/src/ap/preauth_auth.h
new file mode 100644
index 0000000..5348bee
--- /dev/null
+++ b/src/ap/preauth_auth.h
@@ -0,0 +1,58 @@
+/*
+ * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
+ * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING 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 */