mesh: Implement mesh scanning
[mech_eap.git] / wpa_supplicant / mesh.h
1 /*
2  * WPA Supplicant - Basic mesh mode routines
3  * Copyright (c) 2013-2014, cozybit, Inc.  All rights reserved.
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8
9 #ifndef MESH_H
10 #define MESH_H
11
12 int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
13                              struct wpa_ssid *ssid);
14 int wpa_supplicant_leave_mesh(struct wpa_supplicant *wpa_s);
15 void wpa_supplicant_mesh_iface_deinit(struct wpa_supplicant *wpa_s,
16                                       struct hostapd_iface *ifmsh);
17
18 #ifdef CONFIG_MESH
19
20 void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
21                           const u8 *ies, size_t ie_len);
22 void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
23                                      struct wpabuf **extra_ie);
24
25 #else /* CONFIG_MESH */
26
27 static inline void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s,
28                                         const u8 *addr,
29                                         const u8 *ies, size_t ie_len)
30 {
31 }
32
33 static inline void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
34                                                    struct wpabuf **extra_ie)
35 {
36 }
37
38 #endif /* CONFIG_MESH */
39
40 #endif /* MESH_H */