1 1.1 christos /* 2 1.1 christos * WPA Supplicant - Basic mesh peer management 3 1.1 christos * Copyright (c) 2013-2014, cozybit, Inc. All rights reserved. 4 1.1 christos * 5 1.1 christos * This software may be distributed under the terms of the BSD license. 6 1.1 christos * See README for more details. 7 1.1 christos */ 8 1.1 christos 9 1.1 christos #ifndef MESH_MPM_H 10 1.1 christos #define MESH_MPM_H 11 1.1 christos 12 1.1 christos /* notify MPM of new mesh peer to be inserted in MPM and driver */ 13 1.1 christos void wpa_mesh_new_mesh_peer(struct wpa_supplicant *wpa_s, const u8 *addr, 14 1.1 christos struct ieee802_11_elems *elems); 15 1.1 christos void mesh_mpm_deinit(struct wpa_supplicant *wpa_s, struct hostapd_iface *ifmsh); 16 1.1 christos void mesh_mpm_auth_peer(struct wpa_supplicant *wpa_s, const u8 *addr); 17 1.1.1.2 christos void mesh_mpm_free_sta(struct hostapd_data *hapd, struct sta_info *sta); 18 1.1 christos void wpa_mesh_set_plink_state(struct wpa_supplicant *wpa_s, 19 1.1 christos struct sta_info *sta, 20 1.1 christos enum mesh_plink_state state); 21 1.1.1.2 christos int mesh_mpm_close_peer(struct wpa_supplicant *wpa_s, const u8 *addr); 22 1.1.1.2 christos int mesh_mpm_connect_peer(struct wpa_supplicant *wpa_s, const u8 *addr, 23 1.1.1.2 christos int duration); 24 1.1 christos 25 1.1 christos #ifdef CONFIG_MESH 26 1.1 christos 27 1.1 christos void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s, 28 1.1 christos const struct ieee80211_mgmt *mgmt, size_t len); 29 1.1 christos void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s, struct rx_mgmt *rx_mgmt); 30 1.1 christos 31 1.1 christos #else /* CONFIG_MESH */ 32 1.1 christos 33 1.1 christos static inline void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s, 34 1.1 christos const struct ieee80211_mgmt *mgmt, 35 1.1 christos size_t len) 36 1.1 christos { 37 1.1 christos } 38 1.1 christos 39 1.1 christos static inline void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s, 40 1.1 christos struct rx_mgmt *rx_mgmt) 41 1.1 christos { 42 1.1 christos } 43 1.1 christos 44 1.1 christos #endif /* CONFIG_MESH */ 45 1.1 christos 46 1.1 christos #endif /* MESH_MPM_H */ 47