]> git.ipfire.org Git - thirdparty/hostap.git/blame - wpa_supplicant/mesh.h
Fix ANQP_GET/HS20_GET_ANQP parsing to skip space after address
[thirdparty/hostap.git] / wpa_supplicant / mesh.h
CommitLineData
8319e312
TP
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
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);
79070906
MH
17int wpas_mesh_scan_result_text(const u8 *ies, size_t ies_len, char *buf,
18 char *end);
8319e312
TP
19
20#ifdef CONFIG_MESH
21
22void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
23 const u8 *ies, size_t ie_len);
fbca4c89
JA
24void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
25 struct wpabuf **extra_ie);
8319e312
TP
26
27#else /* CONFIG_MESH */
28
29static inline void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s,
30 const u8 *addr,
31 const u8 *ies, size_t ie_len)
32{
33}
34
fbca4c89
JA
35static inline void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
36 struct wpabuf **extra_ie)
37{
38}
39
8319e312
TP
40#endif /* CONFIG_MESH */
41
42#endif /* MESH_H */