aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.h
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@noack.us>2014-09-01 04:23:21 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-25 14:43:20 (GMT)
commit8319e3120d1337cbcb6723257117c3949f78dff4 (patch)
treed20cc3754da062872790eae6a06b26882d246878 /wpa_supplicant/mesh.h
parent5551bc9cb2de229edbc0637209cd1626ca3860fd (diff)
downloadhostap-8319e3120d1337cbcb6723257117c3949f78dff4.zip
hostap-8319e3120d1337cbcb6723257117c3949f78dff4.tar.gz
hostap-8319e3120d1337cbcb6723257117c3949f78dff4.tar.bz2
mesh: Add mesh mode routines
Add routines to (de)initialize mesh interface data structures and join and leave mesh networks. Signed-off-by: Javier Lopez <jlopex@gmail.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: Jason Mobarak <x@jason.mobarak.name> Signed-off-by: Thomas Pedersen <thomas@noack.us>
Diffstat (limited to 'wpa_supplicant/mesh.h')
-rw-r--r--wpa_supplicant/mesh.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh.h b/wpa_supplicant/mesh.h
new file mode 100644
index 0000000..34a0ea2
--- /dev/null
+++ b/wpa_supplicant/mesh.h
@@ -0,0 +1,33 @@
+/*
+ * WPA Supplicant - Basic mesh mode routines
+ * Copyright (c) 2013-2014, cozybit, Inc. All rights reserved.
+ *
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
+ */
+
+#ifndef MESH_H
+#define MESH_H
+
+int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
+ struct wpa_ssid *ssid);
+int wpa_supplicant_leave_mesh(struct wpa_supplicant *wpa_s);
+void wpa_supplicant_mesh_iface_deinit(struct wpa_supplicant *wpa_s,
+ struct hostapd_iface *ifmsh);
+
+#ifdef CONFIG_MESH
+
+void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
+ const u8 *ies, size_t ie_len);
+
+#else /* CONFIG_MESH */
+
+static inline void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s,
+ const u8 *addr,
+ const u8 *ies, size_t ie_len)
+{
+}
+
+#endif /* CONFIG_MESH */
+
+#endif /* MESH_H */