aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-14 23:21:55 (GMT)
committerJouni Malinen <j@w1.fi>2009-01-14 23:21:55 (GMT)
commit11ef8d3578f0c57d9503bbee97cbb8e5c0c42207 (patch)
tree3b517a406bd104fd007d7568b23f0edb09bf91f3 /wpa_supplicant/ibss_rsn.h
parent4bb081f1b457b958ad735f1b4c01074bc816c909 (diff)
downloadhostap-11ef8d3578f0c57d9503bbee97cbb8e5c0c42207.zip
hostap-11ef8d3578f0c57d9503bbee97cbb8e5c0c42207.tar.gz
hostap-11ef8d3578f0c57d9503bbee97cbb8e5c0c42207.tar.bz2
Added initial step for IBSS RSN support
This commit adds a new build option, CONFIG_IBSS_RSN=y, that can be used to enable RSN support for IBSS. This links in RSN Authenticator code from hostapd and adds code for managing per-peer information for IBSS. A new wpa_cli command or driver event can be used to request RSN authentication with an IBSS peer. New RSN Authenticator and Supplicant will be allocated for each peer. The basic state machine setup code is included in this commit, but the state machines are not properly started yet. In addition, some of the callback functions are not yet complete.
Diffstat (limited to 'wpa_supplicant/ibss_rsn.h')
-rw-r--r--wpa_supplicant/ibss_rsn.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/wpa_supplicant/ibss_rsn.h b/wpa_supplicant/ibss_rsn.h
new file mode 100644
index 0000000..d301907
--- /dev/null
+++ b/wpa_supplicant/ibss_rsn.h
@@ -0,0 +1,40 @@
+/*
+ * wpa_supplicant - IBSS RSN
+ * Copyright (c) 2009, 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 IBSS_RSN_H
+#define IBSS_RSN_H
+
+struct ibss_rsn_peer {
+ struct ibss_rsn_peer *next;
+
+ u8 addr[ETH_ALEN];
+
+ struct wpa_sm *supp;
+
+ struct wpa_state_machine *auth;
+};
+
+struct ibss_rsn {
+ struct wpa_supplicant *wpa_s;
+ struct wpa_authenticator *auth_group;
+ struct ibss_rsn_peer *peers;
+ u8 psk[PMK_LEN];
+};
+
+
+struct ibss_rsn * ibss_rsn_init(struct wpa_supplicant *wpa_s);
+void ibss_rsn_deinit(struct ibss_rsn *ibss_rsn);
+int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr);
+
+#endif /* IBSS_RSN_H */