]> git.ipfire.org Git - thirdparty/hostap.git/blame - wpa_supplicant/mesh_mpm.h
DPP2: Presence Announcement processing at Configurator
[thirdparty/hostap.git] / wpa_supplicant / mesh_mpm.h
CommitLineData
5f92659d
BC
1/*
2 * WPA Supplicant - Basic mesh peer management
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_MPM_H
10#define MESH_MPM_H
11
12/* notify MPM of new mesh peer to be inserted in MPM and driver */
13void wpa_mesh_new_mesh_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
14 struct ieee802_11_elems *elems);
15void mesh_mpm_deinit(struct wpa_supplicant *wpa_s, struct hostapd_iface *ifmsh);
16void mesh_mpm_auth_peer(struct wpa_supplicant *wpa_s, const u8 *addr);
9684c756 17void mesh_mpm_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
871ff0b7
MH
18void wpa_mesh_set_plink_state(struct wpa_supplicant *wpa_s,
19 struct sta_info *sta,
20 enum mesh_plink_state state);
e174ef34 21int mesh_mpm_close_peer(struct wpa_supplicant *wpa_s, const u8 *addr);
9f2cf23e
MH
22int mesh_mpm_connect_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
23 int duration);
5f92659d
BC
24
25#ifdef CONFIG_MESH
26
27void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
28 const struct ieee80211_mgmt *mgmt, size_t len);
29void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s, struct rx_mgmt *rx_mgmt);
30
31#else /* CONFIG_MESH */
32
33static inline void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
34 const struct ieee80211_mgmt *mgmt,
35 size_t len)
36{
37}
38
39static inline void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s,
40 struct rx_mgmt *rx_mgmt)
41{
42}
43
44#endif /* CONFIG_MESH */
45
46#endif /* MESH_MPM_H */