2014-09-01 06:23:21 +02:00
|
|
|
/*
|
|
|
|
* 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);
|
2020-06-30 14:19:02 +02:00
|
|
|
int wpa_supplicant_leave_mesh(struct wpa_supplicant *wpa_s,
|
|
|
|
bool need_deinit);
|
2014-09-01 06:23:21 +02:00
|
|
|
void wpa_supplicant_mesh_iface_deinit(struct wpa_supplicant *wpa_s,
|
2020-06-30 14:19:02 +02:00
|
|
|
struct hostapd_iface *ifmsh,
|
|
|
|
bool also_clear_hostapd);
|
2014-09-01 06:23:39 +02:00
|
|
|
int wpas_mesh_scan_result_text(const u8 *ies, size_t ies_len, char *buf,
|
|
|
|
char *end);
|
2014-11-15 02:35:23 +01:00
|
|
|
int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname,
|
|
|
|
size_t len);
|
2016-03-09 10:16:10 +01:00
|
|
|
int wpas_mesh_peer_remove(struct wpa_supplicant *wpa_s, const u8 *addr);
|
2016-03-09 10:16:14 +01:00
|
|
|
int wpas_mesh_peer_add(struct wpa_supplicant *wpa_s, const u8 *addr,
|
|
|
|
int duration);
|
2014-09-01 06:23:21 +02:00
|
|
|
|
|
|
|
#ifdef CONFIG_MESH
|
|
|
|
|
|
|
|
void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
|
|
|
|
const u8 *ies, size_t ie_len);
|
2014-09-01 06:23:32 +02:00
|
|
|
void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpabuf **extra_ie);
|
2014-09-01 06:23:21 +02:00
|
|
|
|
|
|
|
#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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-09-01 06:23:32 +02:00
|
|
|
static inline void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpabuf **extra_ie)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-09-01 06:23:21 +02:00
|
|
|
#endif /* CONFIG_MESH */
|
|
|
|
|
|
|
|
#endif /* MESH_H */
|