blob: 7ebaef0cd087d3045c0d62babeeaa2d5f9e9bcb6 [file] [log] [blame]
Dmitry Shmidtfb45fd52015-01-05 13:08:17 -08001/*
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);
17void mesh_mpm_free_sta(struct sta_info *sta);
Dmitry Shmidtaff761d2015-02-06 10:50:36 -080018void wpa_mesh_set_plink_state(struct wpa_supplicant *wpa_s,
19 struct sta_info *sta,
20 enum mesh_plink_state state);
Dmitry Shmidtfb45fd52015-01-05 13:08:17 -080021
22#ifdef CONFIG_MESH
23
24void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
25 const struct ieee80211_mgmt *mgmt, size_t len);
26void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s, struct rx_mgmt *rx_mgmt);
27
28#else /* CONFIG_MESH */
29
30static inline void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
31 const struct ieee80211_mgmt *mgmt,
32 size_t len)
33{
34}
35
36static inline void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s,
37 struct rx_mgmt *rx_mgmt)
38{
39}
40
41#endif /* CONFIG_MESH */
42
43#endif /* MESH_MPM_H */