blob: 3cb7f1b1364f7d85e2c41ac8e05c559a071bb975 [file] [log] [blame]
Dmitry Shmidtfb45fd52015-01-05 13:08:17 -08001/*
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
12int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
13 struct wpa_ssid *ssid);
14int wpa_supplicant_leave_mesh(struct wpa_supplicant *wpa_s);
15void wpa_supplicant_mesh_iface_deinit(struct wpa_supplicant *wpa_s,
16 struct hostapd_iface *ifmsh);
17int wpas_mesh_scan_result_text(const u8 *ies, size_t ies_len, char *buf,
18 char *end);
19int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname,
20 size_t len);
21
22#ifdef CONFIG_MESH
23
24void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
25 const u8 *ies, size_t ie_len);
26void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
27 struct wpabuf **extra_ie);
28
29#else /* CONFIG_MESH */
30
31static inline void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s,
32 const u8 *addr,
33 const u8 *ies, size_t ie_len)
34{
35}
36
37static inline void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
38 struct wpabuf **extra_ie)
39{
40}
41
42#endif /* CONFIG_MESH */
43
44#endif /* MESH_H */