blob: 2f7f6a7833bb36383e60b42792d361fc264fdfe4 [file] [log] [blame]
Dmitry Shmidt6c0da2b2015-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);
18
19#ifdef CONFIG_MESH
20
21void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
22 const struct ieee80211_mgmt *mgmt, size_t len);
23void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s, struct rx_mgmt *rx_mgmt);
24
25#else /* CONFIG_MESH */
26
27static inline void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
28 const struct ieee80211_mgmt *mgmt,
29 size_t len)
30{
31}
32
33static inline void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s,
34 struct rx_mgmt *rx_mgmt)
35{
36}
37
38#endif /* CONFIG_MESH */
39
40#endif /* MESH_MPM_H */