mesh_mpm.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifndef MESH_MPM_H
  9. #define MESH_MPM_H
  10. /* notify MPM of new mesh peer to be inserted in MPM and driver */
  11. void wpa_mesh_new_mesh_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
  12. struct ieee802_11_elems *elems);
  13. void mesh_mpm_deinit(struct wpa_supplicant *wpa_s, struct hostapd_iface *ifmsh);
  14. void mesh_mpm_auth_peer(struct wpa_supplicant *wpa_s, const u8 *addr);
  15. #ifdef CONFIG_MESH
  16. void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
  17. const struct ieee80211_mgmt *mgmt, size_t len);
  18. void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s, struct rx_mgmt *rx_mgmt);
  19. #else /* CONFIG_MESH */
  20. static inline void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
  21. const struct ieee80211_mgmt *mgmt,
  22. size_t len)
  23. {
  24. }
  25. static inline void mesh_mpm_mgmt_rx(struct wpa_supplicant *wpa_s,
  26. struct rx_mgmt *rx_mgmt)
  27. {
  28. }
  29. #endif /* CONFIG_MESH */
  30. #endif /* MESH_MPM_H */